Skip to content

Commit 7f0a151

Browse files
Empty the $_SESSION variable instead of unset
We shouldn't destroy a global variable cause other scripts trust them to be there.
1 parent a4619e0 commit 7f0a151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Saml2/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ public static function deleteLocalSession()
971971
session_destroy();
972972
}
973973

974-
unset($_SESSION);
974+
$_SESSION = [];
975975
}
976976

977977
/**

0 commit comments

Comments
 (0)