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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -