function ldap_sso_user_logout in LDAP Single Sign On 7.2
Same name and namespace in other branches
- 8.4 ldap_sso.module \ldap_sso_user_logout()
- 8 ldap_sso.module \ldap_sso_user_logout()
- 7 ldap_sso.module \ldap_sso_user_logout()
Implements hook_user_logout().
The user just logged out.
File
- ./
ldap_sso.module, line 30 - This module injects itself into Drupal's Authentication stack.
Code
function ldap_sso_user_logout($account) {
$auth_conf = ldap_authentication_get_valid_conf();
if ($auth_conf->seamlessLogin == 1) {
$cookie_string = 'do not auto login';
$cookie_timeout = (int) $auth_conf->cookieExpire;
setcookie('seamless_login', $cookie_string, $cookie_timeout == -1 ? 0 : $cookie_timeout + time(), base_path(), "");
ldap_servers_set_globals('_SESSION', 'seamless_login', $cookie_string);
}
}