Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

InactivityTimeout

Summary: Automatically logout inactive users
Version: 2007-07-27
Prerequisites: pmwiki-2.2.0-beta1
Status:
Maintainer: cda (other recipes)
Categories: Security

Questions answered by this recipe

  • How to force users to login again if they remained inactive too long ?

Description

To use this recipe, download InactivityTimeout.phpΔ, copy it into the cookbook/ directory, and add the following line to a local customization file:

    $InactivityTimeout = <your value in seconds>;  
    include_once('cookbook/InactivityTimeout.php');

The default timeout is 600 seconds.

PHP options (usually set in php.ini) like 'session.gc_maxlifetime' can cause the sessions to expire before $InactivityTimeout seconds. This recipe only makes sure no authenticated user will remain authenticated longer than $InactivityTimeout, not that he will allways remain authenticated $InactivityTimeout seconds.

Notes

Comments

See Also

Contributors

Edit - History - Print - Recent Changes - Search
Page last modified on July 28, 2007, at 01:43 AM