Refreshing session every (SESSION_TIMEOUT - 1) minute
authorAlexander Ebert <ebert@woltlab.com>
Mon, 12 Nov 2012 20:05:30 +0000 (21:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 12 Nov 2012 20:05:30 +0000 (21:05 +0100)
commitdd932bc6f9417d0e124c8d3a41ddf98c75200629
treedb917f3b2f9cc0b34903d1076cebac12ea087be7
parentf2391e6279bb5bbe87e61b06d94cbd686ae313db
Refreshing session every (SESSION_TIMEOUT - 1) minute

This way the session will not expire as long as the browser window is open, preventing the SECURITY_TOKEN to become invalid due to inactivity.

If the session timeout is 30 minutes (default value), a single request will be sent every 29 minutes.
com.woltlab.wcf/template/headInclude.tpl
wcfsetup/install/files/js/WCF.js
wcfsetup/install/files/lib/data/session/SessionAction.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/session/SessionHandler.class.php