Tell if refreshing?
Posted: Thu Jul 07, 2005 5:17 pm
Is there a way to tell if someone refreshed the current page?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
//untested
session_start();
if(!isset($_SESSION['pg_cnt'])){
$_SESSION['some_page_id'] = TRUE;
}else{
echo 'Page Hit';
}
/*on any other page you would have to make $_SESSION['some_page_id'] = false
*/