diff --git a/src/Illuminate/Session/CookieSessionHandler.php b/src/Illuminate/Session/CookieSessionHandler.php index 0f1a55787b8a..95b7bcc02a84 100755 --- a/src/Illuminate/Session/CookieSessionHandler.php +++ b/src/Illuminate/Session/CookieSessionHandler.php @@ -84,6 +84,8 @@ public function write($sessionId, $data) 'data' => $data, 'expires' => Carbon::now()->addMinutes($this->minutes)->getTimestamp(), ]), $this->minutes); + + return true; } /** @@ -92,6 +94,8 @@ public function write($sessionId, $data) public function destroy($sessionId) { $this->cookie->queue($this->cookie->forget($sessionId)); + + return true; } /** diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index 5fc61f13629c..412a2121fabe 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -120,6 +120,8 @@ public function write($sessionId, $data) } $this->exists = true; + + return true; } /** @@ -157,6 +159,8 @@ protected function getDefaultPayload($data) public function destroy($sessionId) { $this->getQuery()->where('id', $sessionId)->delete(); + + return true; } /** diff --git a/src/Illuminate/Session/FileSessionHandler.php b/src/Illuminate/Session/FileSessionHandler.php index 8b86ede24044..e206d9ddfe89 100644 --- a/src/Illuminate/Session/FileSessionHandler.php +++ b/src/Illuminate/Session/FileSessionHandler.php @@ -81,6 +81,8 @@ public function read($sessionId) public function write($sessionId, $data) { $this->files->put($this->path.'/'.$sessionId, $data, true); + + return true; } /** @@ -89,6 +91,8 @@ public function write($sessionId, $data) public function destroy($sessionId) { $this->files->delete($this->path.'/'.$sessionId); + + return true; } /**