[pmwiki-users] automatic logout ?

Ben Wilson dausha at gmail.com
Thu Jul 19 15:18:53 CDT 2007


On 7/19/07, Christophe David <pmwiki at christophedavid.org> 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 the delta between his last mtime and current
access is greater than your limit (e.g. 600 seconds), then you force a
time out. You could probably also track his mtime in the cookie the
same way.


-- 
Ben Wilson
"Words are the only thing which will last forever" Churchill



More information about the pmwiki-users mailing list