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

Commit 22ef8b5

Browse files
committed
bug #904 fix ignored session save_path (Tobion)
This PR was merged into the 3.0 branch. Discussion ---------- fix ignored session save_path fixes symfony/symfony#16898 do not use php.ini session handler but native file to actually use save_path config When handler_id is null it uses the Native one, but that does not set the save_path. So we need to use https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/NativeFileSessionHandler.php instead (which is the default configuration). Commits ------- 070e53c do not use php.ini session handler but native file to actually use save_path config
2 parents c46b25e + 070e53c commit 22ef8b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/config/config.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ framework:
2626
trusted_hosts: ~
2727
trusted_proxies: ~
2828
session:
29-
# handler_id set to null will use default session handler from php.ini
30-
handler_id: ~
29+
handler_id: session.handler.native_file
3130
save_path: "%kernel.root_dir%/../var/sessions/%kernel.environment%"
3231
fragments: ~
3332
http_method_override: true

0 commit comments

Comments
 (0)