From 56a29eb3b877569a289766e4e6f273dfa6d5ed04 Mon Sep 17 00:00:00 2001 From: Hugo Duksis Date: Mon, 4 Jul 2022 13:54:57 +0200 Subject: [PATCH] adds boolean returns to `write` and `destroy` fixes #11 One possible solution for the warning messages in logs described in #11 following the example of Laravel https://github.com/laravel/framework/issues/15717 --- src/SessionHandler/Cookie.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SessionHandler/Cookie.php b/src/SessionHandler/Cookie.php index a581eb5..8e1bb1a 100644 --- a/src/SessionHandler/Cookie.php +++ b/src/SessionHandler/Cookie.php @@ -63,6 +63,7 @@ public function read($session_id) { */ public function write($session_id, $data) { $this->storage->make($session_id, $data); + return true; } /** @@ -72,6 +73,7 @@ public function write($session_id, $data) { */ public function destroy($session_id) { $this->storage->forget($session_id); + return true; } // In the context of cookies, these three methods are unneccessary, but must