PHPSESSID not being saved to cookie

前端 未结 3 2226
迷失自我
迷失自我 2021-01-05 23:41

the PHPSESSID variable that holds the session id is not being saved into the client cookie. This results in a new session id being generated every time I call the ses

3条回答
  •  忘掉有多难
    2021-01-05 23:46

    It looks like the cookie's domain is being set to localhost. This will only work if you're actually running your website from localhost. You need the session.cookie_domain to match your domain name, optionally with a . in front of it (as in .example.com) to also include subdomains.

提交回复
热议问题