You are here

function _autologout_check_one_session in Automated Logout 7.2

Same name and namespace in other branches
  1. 6.2 autologout.module \_autologout_check_one_session()
1 call to _autologout_check_one_session()
autologout_user_login in ./autologout.module
Implements hook_user_login().

File

./autologout.module, line 535
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[$role];
  }
  return $return;
}