PHP Sessions across sub domains

前端 未结 17 1657
慢半拍i
慢半拍i 2020-11-22 05:59

I am trying to set up the following:

auth.example.com
sub1.example.com
sub2.example.com

If the user visits sub1.example.com or

17条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 06:37

    I get the idea that you don't want something like OpenID, like Joel is suggesting, but that you want to have access to the session data across multiple domains.

    The only possibility that I can think of as a solution for that problem is to store the sessiondata in a database, and pull it out of that database.

提交回复
热议问题