Home  >  Article  >  Backend Development  >  sessionid 是什么时候发作的

sessionid 是什么时候发作的

WBOY
WBOYOriginal
2016-06-13 11:17:461034browse

sessionid 是什么时候产生的?
一个人打开这个页面的时候就产生了? 

还是要等你的后台逻辑里有 session_start 或者 操作_SESSION[XXX]后才产生的?


------解决方案--------------------
session_start 函数被执行时
在 session_start() 之前,你可以用 session_id($sid) 指定你需要的 sessionid
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