CodeIgniter session cookie domain

后端 未结 2 1280
一生所求
一生所求 2020-12-20 18:00

It appears with the following cookie settings below, that cookies are set for the entire domain. For example if I was on http://subdomain.domain.com the cookie would be set

相关标签:
2条回答
  • 2020-12-20 18:16

    Domain specific cookies are only accesible on that domain. Use ".domain.com" as your cookie domain to be able to use it across all subdomains and main domain.

    0 讨论(0)
  • 2020-12-20 18:28

    When using several codeigniter applications on subdomains it is also important to set the same $config[‘encryption_key’].

    0 讨论(0)
提交回复
热议问题