Kaynağa Gözat

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

Magnus Nordlander 13 yıl önce
ebeveyn
işleme
ff99d80a8e

+ 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);
     }
 
     /**