function autologout_footer in Automated Logout 6.4
Same name and namespace in other branches
- 5 autologout.module \autologout_footer()
Implements hook_footer().
Add a form element to every page which is used to detect if the page was loaded from browser cache. This happens when the browser's back button is pressed for example. The JS will set the value of the hidden input element to 1 after initial load. If this is 1 on subsequent loads, the page was loaded from cache and an autologout timeout refresh needs to be triggered.
File
- ./
autologout.module, line 525 - Used to automagically log out a user after a preset time.
Code
function autologout_footer($main = 0) {
if (!_autologout_prevent()) {
return '<form id="autologout-cache-check"><input type="hidden" id="autologout-cache-check-bit" value="0" /></form>';
}
}