note 58362 deleted from reserved.variables by felipe
| From: | felipe@php.net | Date: | Sun, 30 Dec 2007 18:23:22 +0000 |
| Subject: | note 58362 deleted from reserved.variables by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134351@lists.php.net to get a copy of this message | ||
Note Submitter: lorenpr at gmail dot com
----
Here's a simple function that has proven reliable for me in checking if a user has refreshed
the current page on a website.
function pageRefreshed()
{
if($_SERVER['HTTP_CACHE_CONTROL'] == 'max-age=0')
return true;
return false;
}