function _cas_single_sign_out_save_token in CAS 6.2
Same name and namespace in other branches
- 5.4 cas.module \_cas_single_sign_out_save_token()
- 5.3 cas.module \_cas_single_sign_out_save_token()
- 6.3 cas.module \_cas_single_sign_out_save_token()
- 7 cas.module \_cas_single_sign_out_save_token()
1 call to _cas_single_sign_out_save_token()
- cas_login_check in ./
cas.module - Checks to see if the user needs to be logged in
File
- ./
cas.module, line 1260
Code
function _cas_single_sign_out_save_token($user, $cas_sign_out_token) {
// Ok lets save the CAS service ticket to DB so
// we can handle CAS logoutRequests when they come
if ($user->uid && $user->uid > 0 && !empty($cas_sign_out_token)) {
db_query("INSERT INTO {cas_login_data} (cas_session_id, uid) VALUES ('%s', %d)", $cas_sign_out_token, $user->uid);
}
}