You are here

function _cas_single_sign_out_save_token in CAS 5.3

Same name and namespace in other branches
  1. 5.4 cas.module \_cas_single_sign_out_save_token()
  2. 6.3 cas.module \_cas_single_sign_out_save_token()
  3. 6.2 cas.module \_cas_single_sign_out_save_token()
  4. 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 1078

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);
  }
}