You are here: Re: Amazing BUG!!! « PHP Programming Language « IT news, forums, messages
Re: Amazing BUG!!!

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)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация