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
Auth\Simple class creates unnecessary sessions #2684
Using SimpleSAMLphp 2.4.10-slim as an SP as documented, using default PHP sessions.
Describe the bug
The \SimpleSAML\Auth\Simple constructor creates a session even if one doesn't exist from before. This is not necessary if the class is only used to check isAuthenticated(), and causes unnecessary session files to be written on the host.
To Reproduce
$auth = new \SimpleSAML\Auth\Simple('default-sp');
if (!$auth->isAuthenticated()) {
print('<a href="https://github.com/login">Login</a>');
}
With the default SimpleSAMLphp configuration.
When visiting with a clean browser (private tab), a cookie SimpleSAML is set.
Expected behavior
No cookie was set because we didn't do anything, and there was no pre-existing session.
Activity