Skip to content

Commit c9e16f3

Browse files
Use the session_unset function
1 parent 674903b commit c9e16f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Saml2/Utils.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,9 @@ public static function deleteLocalSession()
968968
{
969969

970970
if (OneLogin_Saml2_Utils::isSessionStarted()) {
971+
session_unset();
971972
session_destroy();
972973
}
973-
974-
$_SESSION = [];
975974
}
976975

977976
/**

0 commit comments

Comments
 (0)