-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Session] Session storage path does not get set. #16898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you configure the save_path as in https://github.com/symfony/symfony-standard/blob/master/app/config/config.yml#L31 ? |
yup,
|
I found the problem. See symfony/symfony-standard#904 for the fix. |
Nice! that was really fast :) |
that fix solved my problems :) |
Closing here then as there is nothing we can do in the core. |
fabpot
added a commit
to symfony/symfony-standard
that referenced
this issue
Jan 14, 2016
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
It seems Symfony dosn't change the session storage path
%kernel.root_dir%/../var/sessions/%kernel.environment%
, when checkingapp_dev.php/_profiler/phpinfo
it returns/var/lib/php/session
.This lines solves the problem temporarily:
session_save_path(__DIR__ . "/../var/session");
inapp.php
andapp_dev.php
I got the exception when authenticating because Apache dosn't have write access to the default PHP session storage path.
I'm running Symfony 3.0.0 with PHP 7.0.0.
The project that I noticed the issue on:
https://bitbucket.org/Richardh87/messenger
The text was updated successfully, but these errors were encountered: