浏览代码

[HttpFoundation] changed the default name of the session to _SESS as using _SESSION does not seem to work with PHP 5.3.3 (the session starts for each request)

Fabien Potencier 14 年之前
父节点
当前提交
49a3e52fa8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.php

+ 2 - 2
src/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.php

@@ -26,7 +26,7 @@ class NativeSessionStorage implements SessionStorageInterface
     /**
      * Available options:
      *
-     *  * name:     The cookie name (_SESSION by default)
+     *  * name:     The cookie name (_SESS by default)
      *  * id:       The session id (null by default)
      *  * lifetime: Cookie lifetime
      *  * path:     Cookie path
@@ -43,7 +43,7 @@ class NativeSessionStorage implements SessionStorageInterface
         $cookieDefaults = session_get_cookie_params();
 
         $this->options = array_merge(array(
-            'name'          => '_SESSION',
+            'name'          => '_SESS',
             'lifetime'      => $cookieDefaults['lifetime'],
             'path'          => $cookieDefaults['path'],
             'domain'        => $cookieDefaults['domain'],