]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Session/Handler/Cache.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Core / Session / Handler / Cache.php
index 5aec68e634f2746e31d8a5bcf19e8214daffaa70..8bf7f9364b8c4e22f29b0b1a406c5618c69e4796 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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);