Ver Fonte

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

Magnus Nordlander há 13 anos atrás
pai
commit
ff99d80a8e
1 ficheiros alterados com 1 adições e 1 exclusões
  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);
     }
 
     /**