Then they go to checkout and are redirected to https://mydomain.com -
now they are not seen as logged in as the cookie was issued by www.mydomain.com
not mydomain.com and so are then getting redirected to the login page.
I’m using acts_as_authenticated and all is fine except for this issue.
Any clues would be appreciated.
Then they go to checkout and are redirected to https://mydomain.com -
now they are not seen as logged in as the cookie was issued by www.mydomain.com
not mydomain.com and so are then getting redirected to the login page.
You can set the domain for your session cookie to be “.mydomain.com”,
thus
regardless of the subdomain session state will be kept. A simple way
would
be to add this line to your production.rb: