Skip to content
Permalink
Browse files

Replicating the same fixes done to DatabaseSession in CacheSession

Fixes #9872
  • Loading branch information...
lorenzo committed Feb 3, 2017
1 parent 875b454 commit e808b70d431caa6d850f7531bec1f728c84d5442
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/Network/Session/CacheSession.php
@@ -100,7 +100,11 @@ public function read($id)
*/
public function write($id, $data)
{
return Cache::write($id, $data, $this->_options['config']);
if (!$id) {
return false;
}
return (bool)Cache::write($id, $data, $this->_options['config']);
}
/**
@@ -111,7 +115,9 @@ public function write($id, $data)
*/
public function destroy($id)
{
return Cache::delete($id, $this->_options['config']);
Cache::delete($id, $this->_options['config']);
return true;
}
/**

0 comments on commit e808b70

Please sign in to comment.
You can’t perform that action at this time.