Skip to content

Commit

Permalink
delete record
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 14, 2016
1 parent 4c4313c commit 09b09eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Session/DatabaseSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public function read($sessionId)

if (isset($session->last_activity)) {
if ($session->last_activity < Carbon::now()->subMinutes($this->minutes)->getTimestamp()) {
$this->destroy($sessionId);

return;
}
}
Expand Down

0 comments on commit 09b09eb

Please sign in to comment.