[pmwiki-users] automatic logout ?

Patrick R. Michaud pmichaud at pobox.com
Tue Jul 17 16:25:33 CDT 2007


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 forget
passwords, or what?

PHP's default configuration will automatically log someone out after
24 minutes of inactivity.  This can be adjusted using the
session.cookie_lifetime configuration option in PHP:

    # automatically log browser out after 15 minutes of inactivity
    ini_set('session.cookie_lifetime', time() + 15 * 60);

Pm



More information about the pmwiki-users mailing list