Browse Source

Allow changing the session storage path

Jordi Boggiano 10 years ago
parent
commit
26900f55a1
2 changed files with 2 additions and 0 deletions
  1. 1 0
      app/config/config.yml
  2. 1 0
      app/config/defaults.yml

+ 1 - 0
app/config/config.yml

@@ -18,6 +18,7 @@ framework:
         name: packagist
         cookie_lifetime: 3600
         cookie_httponly: true
+        save_path: %session_save_path%
     trusted_proxies: %trusted_proxies%
     trusted_hosts: %trusted_hosts%
     http_method_override: true

+ 1 - 0
app/config/defaults.yml

@@ -1,2 +1,3 @@
 parameters:
     packagist_host: ~
+    session_save_path: %kernel.cache_dir%/sessions