CodeIgniter session cookie domain

后端 未结 2 1283
一生所求
一生所求 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.

提交回复
热议问题