Reputation: 9499
I am noticing that my sites session cookies are different between the two. If someone logs in on the www.mysite.com
they are not logged in on the non www
site. How can I fix this?
Upvotes: 2
Views: 177
Reputation: 9499
in config/initializers/session_store.rb
add , :domain => ".yourdomain.com"
to the end of the Application.config.session_store
line.
Upvotes: 0
Reputation: 493
Add domain for cookie like this:
cookies[:key] = {:value=>val,:domain=>'.mysite.com'}
Upvotes: 1