>> At any rate, there's a special-purpose session_set_cookie_params()
>> function that seems to do exactly what you want.  So, to automatically
>> log out after 10 minutes, try (in local/(farm)config.php):
>>     session_set_cookie_params(10 * 60);

> For what it's worth, I'm using authuser and neither of the below log me out
> after 2 minutes of inactivity:
> ini_set('session.cookie_lifetime', time() + 2 * 60);
> session_set_cookie_params(2 * 60);

My own testing shows the same ;-(   Futhermore, it seems to behave
like with a persistent cookie: even closing the browser and restarting
it keeps the athentication level...

What I would expect is the behaviour of a non persistent cookie with
limited lifetime, thus expiring when closing the browser or after the
specified lifetime.

Any idea how to make an inactivity timeout that actually works ;-) ?

Thank you in anticipation.

Christophe

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to