|
Posted by Jerry Stuckle on June 24, 2008, 3:18 pm
Please log in for more thread options
David Gillen wrote:
> Hi.
>
> I've 2 requirements
> - session will end when browser is closed
> - session will end after 90 minutes inactivity.
>
> Now, from the documentation session.cookie-lifetime when set to 0 _should_
> cause the session to end when the browser is closed, although at the moment
> this doesn't appear to be the case for me. So, question one, can something
> override this in someway? Some other setting perhaps?
>
> Now, to get the 90 minute inactivity timeout I would need to set
> session.cookie-lifetime to 5400 (seconds). This means the session ending on
> broswer close won't work though, as it's the same setting I was to set to 0.
>
> Can I have my cake AND eat it so to speak? Or is this a limitation of
> sessions?
>
> Thanks
>
You can't guarantee the session will be closed when the browser closes -
all you can do is recommend it. Since it's on the user's computer, the
user can change the value and/or have the browser ignore it all together.
I'd recommend you just leave it at 90 minutes - or keep it short, i.e.
15 minutes, to ensure they are still active.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
|