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
[HttpFoundation] Why is the default session name hardcoded? #1418
Comments
If you have a closer look at the code, there is an array_merge(). So you can override the session name from the configuration by changing the $options['name'] parameter. |
Please checkout session section of full framework config. |
I'm aware we can set up the session name in the app config. My concern is that Symfony is not taking into consideration what a user may have set up in their php.ini or with php_value in an apache config like it does with all the params from |
@jpb0104 What do you think about mine proposal for fixing this issue ? The problem now is that if you even set up data in config.yml it will be ignored if option |
@stloyd If the user set a value explicitly in the configuration, it should be used. |
@jpb0104 Please check PR #1463. |
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/SessionStorage/NativeSessionStorage.php#L46
I feel like we should pull the sesssion name from
session_name()
for the default session name. Because the rest of the default params for$cookieDefaults
are pulled from php configuration.The text was updated successfully, but these errors were encountered: