Codeigniter sessions across sub domains

后端 未结 3 1161
南方客
南方客 2021-01-13 10:49

I have multiple subdomains and i\'m trying to use the sessions across subdomains.

http://example.com
http://subdomain.example.com

I have al

3条回答
  •  北海茫月
    2021-01-13 11:44

    first floor is right ,but does not clearly the reason

    Reasons: from: https://ellislab.com/forums/viewthread/131851/#651233

    CI’s session, like any other session mechanism, uses a cookie to identify the session. It’s is the cookie that should be available cross-domain.

    For domain, you need to specify ‘.domain.com’, not ‘*.domain.com’.

提交回复
热议问题