Home  >  Article  >  Backend Development  >  php session_id 不停的变化解决办法

php session_id 不停的变化解决办法

WBOY
WBOYOriginal
2016-06-13 10:17:25888browse

php session_id 不停的变化
请问 我的页面上的session_id 为什么在不停的变化 不是固定的 我每刷新一次它就变化一次 这个应该是固定的啊
是什么问题导致的啊

------解决方案--------------------

探讨

session.cookie_domain =80tao.dev
把这个去掉就可以了
但是为什么啊

------解决方案--------------------
session.cookie_domain =80tao.dev

表示 session 只在 80tao.dev 域有效

所以需要也在这个域中测试你的代码
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn