Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 960f374

Browse files
committed
feature #606 Added config to force Symfony use native session handler by default (pulzarraider)
This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #606). Discussion ---------- Added config to force Symfony use native session handler by default As far as I know Symfony is using NativeFileSessionHandler to save session data to file. This breaks server configuration, because if php is configured to use Memcache or Redis session handler, symfony stores session data to file in app/cache directory and ignores default php session settings. Correct me if I am wrong, but Symfony should use native session handler that is configured in php ini settings by default (to create less WTFs). Commits ------- 89f82c8 Added config to force Symfony to use native session handler by default
2 parents 4e38915 + 89f82c8 commit 960f374

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/config/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ framework:
1818
default_locale: "%locale%"
1919
trusted_hosts: ~
2020
trusted_proxies: ~
21-
session: ~
21+
session:
22+
# handler_id set to null will use default session handler from php.ini
23+
handler_id: ~
2224
fragments: ~
2325
http_method_override: true
2426

0 commit comments

Comments
 (0)