Symfony 3: How to share the cookie on subdomain?
问题 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 is .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. so, how to do now? 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: