From 09b09ebad480940f2b49f96bbfbea0647783025e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 13 Jun 2016 21:16:45 -0400 Subject: [PATCH] delete record --- src/Illuminate/Session/DatabaseSessionHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index db3ecdb949d5..d10fb9970b8e 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -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; } }