Skip to content

Commit

Permalink
Updated logout code, session_destroy() is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Aug 19, 2023
1 parent 9dbc3ee commit 4cd8f91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/php/libAllure/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ public static function logout()
Logger::messageNormal('Logout: ' . self::getUser()->getUsername(), 'USER_LOGOUT');

session_unset();
session_destroy();
session_regenerate_id();
session_regenerate_id(true);
}

public static function isLoggedIn()
Expand Down

0 comments on commit 4cd8f91

Please sign in to comment.