PHP session 刷新丢失问题

1、客户端禁用了cookie
2、浏览器出现问题,暂时无法存取cookie
3、php.ini中的session.use_trans_sid = 0或者编译时没有打开–enable-trans-sid选项

浏览器禁用cookie后的后果就是,$_COOKIE变量内容为空,每次刷新页面后,session id值随之改变。

About 寒江独钓雪

A man's freedom world!
This entry was posted in PHP开发. Bookmark the permalink.

留下评论

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>