Skip to content

Commit 4c299aa

Browse files
authored
Merge pull request #18 from leafsphp/fix-check-session-before-expire
FIX: Check session exists on expireSession
2 parents 360e755 + 1e64d20 commit 4c299aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ public static function logout(?string $location = null)
487487
*/
488488
private static function expireSession(): bool
489489
{
490+
self::sessionCheck();
490491
$sessionTtl = static::$session->get('SESSION_TTL');
491492

492493
if (!$sessionTtl) {

0 commit comments

Comments
 (0)