Browse Source

Merge pull request #5667 from cakephp/issue-5666

Only destroy active sessions.
José Lorenzo Rodríguez 11 years ago
parent
commit
1752bc3d1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Network/Session.php

+ 1 - 1
src/Network/Session.php

@@ -509,7 +509,7 @@ class Session
             $this->start();
         }
 
-        if (!$this->_isCli) {
+        if (!$this->_isCli && session_status() === PHP_SESSION_ACTIVE) {
             session_destroy();
         }