Losing session in rails 2.3.2 app using subdomain

前端 未结 10 1050
轻奢々
轻奢々 2020-12-06 13:39

I have a 2.2.3 app which I upgraded to 2.3.2

It\'s a multi-site (using subdomain) that creates one top level session for all sites.

This is how I change the

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 14:20

    You must indicate:

    .example.com
    

    (notice the leading dot) in order for the session cookie to apply to example.com as well as its sub-domains.

提交回复
热议问题