You are here

function _autologout_check_one_session in Automated Logout 6.2

Same name and namespace in other branches
  1. 7.2 autologout.module \_autologout_check_one_session()
1 call to _autologout_check_one_session()
autologout_user in ./autologout.module
Implementation of hook_user().

File

./autologout.module, line 491
Used to automagically log out a user after a preset time, AjK May 2006

Code

function _autologout_check_one_session() {
  global $user;
  $return = 1;
  $values = variable_get('autologout_one_session', 0);
  foreach ($user->roles as $role) {
    $return = $return && $values[t($role)];
  }
  return $return;
}