Explorar o código

Changed the behavior of Session::regenerate to destroy the session when it invalidates it.

Magnus Nordlander %!s(int64=13) %!d(string=hai) anos
pai
achega
ff99d80a8e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/HttpFoundation/Session.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/Session.php

@@ -194,7 +194,7 @@ class Session implements \Serializable
     public function invalidate()
     {
         $this->clear();
-        $this->storage->regenerate();
+        $this->storage->regenerate(true);
     }
 
     /**