Skip to content

Commit

Permalink
Merge pull request #18 from leafsphp/fix-check-session-before-expire
Browse files Browse the repository at this point in the history
FIX: Check session exists on expireSession
  • Loading branch information
mychidarko authored Sep 12, 2023
2 parents 360e755 + 1e64d20 commit 4c299aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ public static function logout(?string $location = null)
*/
private static function expireSession(): bool
{
self::sessionCheck();
$sessionTtl = static::$session->get('SESSION_TTL');

if (!$sessionTtl) {
Expand Down

0 comments on commit 4c299aa

Please sign in to comment.