Re: session lifetime
| From: | DATURA | Date: | Mon, 22 Jan 2001 08:05:37 +0000 |
| Subject: | Re: session lifetime | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5132@lists.php.net to get a copy of this message | ||
Never mind! I've found the reason for this erratic behaviour: It's inside
Windows 2000. Obviously Windows itself is deleting the content of its
TEMP-Directory from time to time... So my session files are not deleted by
the PHP garbage collection routine but from this %*&/ Windows.
Since the session.save_path is pointing to another directory outside C:\TEMP
the sessions are alive for more than 15 minutes.
Thanks anyway, Rolf.
""DATURA"" <info@datura.ch> schrieb im Newsbeitrag
news:949cql$3oc$1@toye.p.sourceforge.net...
> I have the following settings in PHP.INI:
> [Session]
> session.save_handler = files
> session.save_path = C:\temp
> session.use_cookies = 1
> session.name = PHPSESSID
> session.auto_start = 1
> session.cookie_lifetime = 0
> session.cookie_path = /
> session.cookie_domain =
> session.serialize_handler = php
> session.gc_probability = 1
> session.gc_maxlifetime = 86400 ; 24 hours
> session.referer_check =
> session.entropy_length = 0
> session.entropy_file =
> ; session.entropy_length = 16
> ; session.entropy_file = /dev/urandom
> session.cache_limiter = nocache
> session.cache_expire = 180
> session.use_trans_sid = 1
> url_rewriter.tags =
> "a=href,area=href,frame=src,input=src,form=fakeentry"
>
> I'm using PHP under Windows 2000 with Apache 1.3.12.
>
> No matter what number is given in the line session.gc_maxlifetime the
> session file is deleted after 24 minutes (1440 sec.)
>
> Is 86400 a number too big or can someone tell me what there is to do, so I
> can make my own garbage collection?
>
> Thanks, Rolf.
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>