function autologout_user_login in Automated Logout 7.2
Same name and namespace in other branches
- 8 autologout.module \autologout_user_login()
- 7.4 autologout.module \autologout_user_login()
Implements hook_user_login().
File
- ./
autologout.module, line 247 - Used to automagically log out a user after a preset time, AjK May 2006
Code
function autologout_user_login(&$edit, $account) {
_autologout_debug("autologout_user_login()");
if (empty($account->uid)) {
return;
// UID 0 not appliciable
}
// one session checking
$return = _autologout_check_one_session();
if ($return) {
_autologout_invalidate_other_sessions($account);
}
$_SESSION['lastaccess'] = REQUEST_TIME;
}