I have over two subdomains in my site. such as:www.example.com, login.example.com, user.example.com, cart.example.com...
I setup the cookie_domain
as .example.com
in config.yml
and php.ini
when I setCookies('test', 'value', '.example.com')
, but the cookie is always not shared in the subdomain.
there is my config.yml
session:
handler_id: session.handler.native_file
save_path: "%kernel.root_dir%/../var/sessions/"
cookie_domain: .example.com
cookie_lifetime: 0
name: TESTSESSIONID
in my security:
security:
session_fixation_strategy: none