Skip to content

Commit

Permalink
adds boolean returns to write and destroy
Browse files Browse the repository at this point in the history
fixes stevencorona#11 

One possible solution for the warning messages in logs described in stevencorona#11 
following the example of Laravel laravel/framework#15717
  • Loading branch information
duksis authored Jul 4, 2022
1 parent 30fe7c7 commit 56a29eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SessionHandler/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function read($session_id) {
*/
public function write($session_id, $data) {
$this->storage->make($session_id, $data);
return true;
}

/**
Expand All @@ -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
Expand Down

0 comments on commit 56a29eb

Please sign in to comment.