You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
session_id(): Session ID cannot be changed when a session is active" in requireAuth() with a stale session cookie #2696
Describe the bug
With store.type = phpsession, new Auth\Simple($source) followed by requireAuth() raises a warning when the browser sends a session cookie whose PHP session holds no SimpleSAML session data (for example, an expired session).
We suspect that this was introduced by the changes in #2685 but arent entirely sure.
We did find a possible workaround to be new Auth\Simple($source, null, Session::getSessionFromRequest()).
To Reproduce
Authenticate and ensure there is a valid session cookie, remove the php session file to provoce the error. Attempt to authenticate again, which should just re-authenticate, but without the workaround gives us an error.
That PR #2685 was released in v2.4.13, so that can't be the problem. In fact, it could be the solution! Could you try updating to the latest version to see if you still have this issue?
Activity
tvdijen commentedon Dec 4, 2026
That PR #2685 was released in v2.4.13, so that can't be the problem. In fact, it could be the solution! Could you try updating to the latest version to see if you still have this issue?