Closed (fixed)
Project:
CAS
Version:
6.x-3.x-dev
Component:
CAS Server
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
26 May 2011 at 18:03 UTC
Updated:
15 Feb 2023 at 02:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedApologies, the login destination was "Initial login destination" which does not apply since I was doing it multiple times.
This still applies for the logout destination, however.
Comment #2
Anonymous (not verified) commentedBy removing the following from cas_server_logout() I have gotten this working properly:
Since that is placed where it is, the following doesn't even seem to show up at all when the logout is performed (the homepage redirect happens first):
Now it does. The only thing doing the actual logging out is the session_destroy();
I am unsure if this will have unintended consequences.
Comment #3
bfroehle commentedReading through the current cas_server_logout() shows that it is quite broken:
(1) It uses $user but never does
global $user;to import it.(2) It does not set $user to the anonymous user.
Attached patch makes cas_server_logout() much more like user_logout() (in the ordering of session destroy, etc).
Not sure if this will solve the issue of the original post. In addition, we should probably convert this text into a theme function which could be overridden.
Comment #4
bfroehle commentedWe'll need to apply these fixes to 7.x-1.x as well.
Comment #5
bfroehle commentedThis will cause warnings later since we are appending to a variable which will not exist.
Comment #6
thecarlhall commentedAttaching an updated patch to #3 for 7.x-1.x that includes 2 other tiny changes/fixes:
issetwhen checking for request parametersComment #7
bfroehle commentedComment #8
bfroehle commentedI intend to commit the attached patch to 7.x-1.x.
Comment #9
bfroehle commentedAnd the following patch to 6.x-3.x.
Comment #10
bfroehle commentedCommitted to 6.x-3.x and 7.x-1.x.