Re: [pmwiki-users] automatic logout ?

2007-07-24 Thread ThomasP
On Thu, July 19, 2007 22:18, Ben Wilson wrote: On 7/19/07, Christophe David [EMAIL PROTECTED] wrote: [...] Any idea how to make an inactivity timeout that actually works ;-) ? I developed a system with an inactivity timeout. What you need to do is track session data on the server side. Each

Re: [pmwiki-users] automatic logout ?

2007-07-19 Thread Patrick R. Michaud
On Thu, Jul 19, 2007 at 09:37:01AM +0200, Christophe David wrote: Is there a way to force users to log on again after a specified time, so that their access rights are not left forever (?) on a shared PC if they do not logout ? # automatically log browser out after 15 minutes of inactivity

Re: [pmwiki-users] automatic logout ?

2007-07-19 Thread Ian MacGregor
Also interesting -- that must be some local default. This means that the session will last for 12 hours, or up to the value of session.gc_maxlifetime (defaults to 24 minutes). As ini_get('session.cookie_lifetime') returns initially nothing, wouldn't it be safer to include in the

Re: [pmwiki-users] automatic logout ?

2007-07-19 Thread Christophe David
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

Re: [pmwiki-users] automatic logout ?

2007-07-19 Thread Ben Wilson
On 7/19/07, Christophe David [EMAIL PROTECTED] wrote: [...] Any idea how to make an inactivity timeout that actually works ;-) ? I developed a system with an inactivity timeout. What you need to do is track session data on the server side. Each time the user accesses, you update his mtime. If

[pmwiki-users] automatic logout ?

2007-07-17 Thread Christophe David
Is there a way to force users to log on again after a specified time, so that their access rights are not left forever (?) on a shared PC if they do not logout ? I hoped to find something similar to SDV($AuthorCookieExpires,$Now+60*60*24*30); but I could not find it... Thank you in

Re: [pmwiki-users] automatic logout ?

2007-07-17 Thread Patrick R. Michaud
On Tue, Jul 17, 2007 at 11:09:35PM +0200, Christophe David wrote: Is there a way to force users to log on again after a specified time, so that their access rights are not left forever (?) on a shared PC if they do not logout ? Are you using authuser, or do you simply want the browser to