Home  >  Article  >  Backend Development  >  关于session跨页丢失有关问题

关于session跨页丢失有关问题

WBOY
WBOYOriginal
2016-06-13 12:18:04887browse

关于session跨页丢失问题
相同的代码在Windows下aparhe服务器运行正常,在CentOS的nginx下就有问题。具体如下;
a.php中的$_SESSION['username']无法在b.php中使用。而测试两个php文件中的session id都相同。
网上看了一些方法,貌似要修改CentOS中php配置文件session的路径,以及路径下没有文件的问题。求有经验的大神解答,万分感谢!!!
------解决思路----------------------
参考:http://blog.csdn.net/fdipzone/article/details/43205961
------解决思路----------------------
你应该是session目录没有配置,导致session不能写入。

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
Previous article:PHP学习入门2之WAMP配置Next article:phpunit 装配