Skip to content

Commit

Permalink
Add support to return expire session after file expired
Browse files Browse the repository at this point in the history
  • Loading branch information
nguereza-tony committed Nov 6, 2023
1 parent eca8789 commit 09ad090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storage/LocalStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function read($sid): string
{
$file = $this->getSessionFile($sid);

if (!$file->exists()) {
if (!$file->exists() || time() > $file->getMtime()) {
return '';
}

Expand Down

0 comments on commit 09ad090

Please sign in to comment.