Symfony sessions in www.mydomain.com and mydomain.com -
im trying make users sessions live 1 year , valid in www.mydomain.com , mydomain.com, far have in security.yml:
firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: remember_me: key: %secret% lifetime: 31536000 path: / domain: "*.mydomain.com"
but still if log in on www.mydomain.com, later on mydomain.com im not logged.
i'm not sure specify domain: "*.mydomain.com"
string proper way. 1 thing have in mind (without specific experience type of symfony2 problematic) change value of domain
in .mydomain.com
(as written here) or "migrate information" cookie_domain
follow:
framework: session: cookie_domain: .mydomain.com
Comments
Post a Comment