Codeigniter sessions across sub domains

后端 未结 3 1159
南方客
南方客 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:29

    Only $config['cookie_domain'] part is required, $config['cookie_prefix'] is only to make things clean or you have some sub domain uses same domain but does not wanted to be shared.

提交回复
热议问题