Browse Source

Conditionally renew.

euromark 11 years ago
parent
commit
1e6fb0f962
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/Network/Session.php

+ 3 - 1
src/Network/Session.php

@@ -531,7 +531,9 @@ class Session
     public function clear($renew = false)
     {
         $_SESSION = [];
-        $this->renew();
+        if ($renew) {
+            $this->renew();
+        }
     }
 
     /**