XavRsl / Cas

CAS server SSO authentication in Laravel 4.x & 5.x
MIT License
77 stars 36 forks source link

Cas::logout() does not work properly #25

Open szewang2805 opened 9 years ago

szewang2805 commented 9 years ago
  1. Cas::authenticate(); login successfully
  2. Cash::getCurrentUser(); //i can get the user name; it is ok
  3. Cas:logout(); // i logout the current user
  4. Cash::getCurrentUser(); // that's ok, the result is blank

however, if i try to run Cas::authenticate in the same browser (does no close the browser), the web app automatically log the prevent logined user, after that , Cas::getCurrentUser() return the previous user as logined.

I suspect that there is a session or cookie not being cleaned? please advice

the expect behaviour is when first time logout, and Cash::Authenticate will redirect to login page. Am i right?

kandenas commented 8 years ago

Getting the same behaviour - any solution to clean up?

loren138 commented 8 years ago

Is Cas::logout() sending you to the CAS logout page? (IE Are you sure your CAS session is dead?) phpCas (and thus this project) us php sessions to handle logins.