But that Page2 code will always return False for AOL users (that get another IP for each request) and some users behind a proxy that does IP pooling.
Can't you just set a flag --> set a sessionvariable to whatever and then just check if it is set?
Page1:
<?php
session_start();
$_SESSION['cleared'] = 'yes';
?>
Page 2:
PHP Code:
<?php
session_start();
if( isset($_SESSION['cleared']){
if ($_SESSION['cleared'] == 'yes') {
// whatever
} else {
header('location<img src="images/smilies/tongue.gif" border="0" alt="">age1.php');
}
} else {
//some redirect to a page where the session is cleared
}
?>