CASGT cookie is set by CAS and should be disabled. The CAS logout procedure works as follows:
You really go to the CAS exit page. The page should know the application you are leaving. One way is to redirect to the exit page from the CAS from the application by providing the redirect URL as a parameter.
Your cookie will be deleted and then you will be redirected to the application via a POST request.
SingleSignOutFilter catches the special parameter "logoutRequest" and actually destroys the ticket / session mapping that it saved from the very beginning, and also cancels the current session.
To debug CAS, enable TRACE level logging. This way you will know if the correct request was received or if the session was invalidated.
I also advise you to look at the package code org.jasig.cas.client.session , which is pretty simple.
Infeligo
source share