function bakery_user_logout in Bakery Single Sign-On System 7.3
Same name and namespace in other branches
- 8.2 bakery.module \bakery_user_logout()
- 6.2 bakery.module \bakery_user_logout()
- 6 bakery.module \bakery_user_logout()
- 7.4 bakery.module \bakery_user_logout()
- 7.2 bakery.module \bakery_user_logout()
Implements hook_user_logout().
File
- ./
bakery.module, line 125
Code
function bakery_user_logout($account) {
global $user;
$bakery = bakery_get_bakery();
// Only delete the SSO cookie if the name is the same in case there was an
// existing session that's being logged out and SSO cookie is for new session.
$cookie = $bakery
->validateSsoCookie();
if ($user->uid && !is_null($cookie) && $cookie !== FALSE) {
$bakery
->deleteSsoCookie();
}
}