Skip to content

Commit

Permalink
Move session_unset() upwards
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenVanZanten authored Dec 5, 2019
1 parent c9e16f3 commit 1d2c226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Saml2/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,9 +966,9 @@ public static function isSessionStarted()
*/
public static function deleteLocalSession()
{
session_unset();

if (OneLogin_Saml2_Utils::isSessionStarted()) {
session_unset();
session_destroy();
}
}
Expand Down

0 comments on commit 1d2c226

Please sign in to comment.