]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Session/Handler/Database.php
Merge branch 'develop' of https://github.com/friendica/friendica into develop
[friendica.git] / src / Core / Session / Handler / Database.php
index 3c2f9027a5646cccd321995ac97aaa84e3dc1d5c..c0467818c0ca753f1dc0fbfae601b2a344461a75 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
  *
@@ -94,7 +94,7 @@ class Database implements SessionHandlerInterface
                }
 
                if (!$session_data) {
-                       return true;
+                       return $this->destroy($session_id);
                }
 
                $expire         = time() + Session::$expire;