Posted by Dave on 05/23/05 22:45
(joealey2003@yahoo.com) decided we needed to hear...
> there was an error on last post.
>
> here goes the new working code:
> //------------------------------------------------------------------
> <?php
> session_cache_limiter('private');
> session_cache_expire(20); //20 minutes
> ini_set("session.gc_maxlifetime",30); // Time in seconds
> ini_set("session.gc_probability",100); // 100% probability
> session_start();
<snip most of code>
> if (! $Not_Expired) {
Nice double-negative - hope you don't normally code this way.
<snip>
Have you read the online docs about cache limiter, esp. the user
comments? Browsers are finicky about cache headers, so extra
headers are required to make most (but not all) situations work.
http://www.php.net/manual/en/function.session-cache-limiter.php
--
Dave <dave@REMOVEbundook.com>
(Remove REMOVE for email address)
[Back to original message]
|