Add support for empty session write
- Ignored empty data left session intact, leading to unexpected behaviors
This commit is contained in:
@@ -87,7 +87,7 @@ class Cache implements SessionHandlerInterface
|
||||
}
|
||||
|
||||
if (!$session_data) {
|
||||
return true;
|
||||
return $this->destroy($session_id);
|
||||
}
|
||||
|
||||
return $this->cache->set('session:' . $session_id, $session_data, Session::$expire);
|
||||
|
||||
Reference in New Issue
Block a user