symfony/symfony — Issue #3471: Session Cookie is not set with framework configs
Author: Divi
Created: 2012-02-29 09:45:21+00:00
State: open

Hello,

I wanted to share a session between some subdomains. So I tried to edit the config session in config.yml with children configs :
lifetime: 86400
path: ~
domain: mydomain.com
secure: ~
httponly: ~

But the problem is the session's cookie domain was not edited. Indeed, in the AbstractSessionStorage (https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/Session/Storage/AbstractSessionStorage.php#L228) we waiting for the option name : "cookie_domain" but the real option name is "domain". It's the same for all "cookie_*" options.