Well you can change the default from 30 mins to something larger, but that has 
security consequences...

The problem with only closing when the user closes their browser is there's no 
way of knowing when that happens. Sessions are kind of a hack over HTTP, 
which is pretty much a stateless protocol. There's Connection: keep-alive, 
but not every browser supports it, and I don't think there's a way to hook 
into it from PHP. Plus, things can happen to TCP/IP connections.


On Wednesday 08 October 2003 10:05 pm, Manisha Sathe wrote:
> Hi,
>
> I want to make use of sessions. Very new to this part. I read a lot about
> it. Now know how to register / start etc.
>
> I understand that session terminates after time out (specified in php.ini
> file e.g 30 mins).  But I do not want session to be terminated like this. I
> want to terminate session only if user closes the browser or clicks
> 'LogOut' button. After 30 mins I still want to keep all session values as
> it is.
>
> Is there any way out ?
>
> Regards
> Manisha

-- 
Evan Nemerson
[EMAIL PROTECTED]

--
"Know me? Know me??? What the hell does that mean, know me, you want to know 
me? Well you don't know me, and you'll never know me. Nobody knows me, or 
you, or eachother. Nobody in this world knows anybody else. You'll never know 
me. Ever."

-Rules of Attraction

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to