소스 검색

[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'],