PHP sessions *not always* working

妖精的绣舞 提交于 2019-11-30 23:04:52

Sessions require server disk space to save has the server got disk space to save the session? we had a problem on a linux box where sessions stopped saving as its partition had run out of disk space.

check your php.ini, do a phpinfo() and see how sessions are configured... look especially for the session.gc_maxlifetime setting.

http://php.net/manual/en/session.configuration.php

We had this problem too. We solve it by changing session.auto_start = 0 to session.auto_start = 1 in the php.ini of the server. I don't know why but it solved our problem. We're still investigating why this worked and what are the consequences of doing this.

I am also having the same issue sometime, with one of my dedicated server, which has PHP 5.4.3 installed.

Ironically, when I clear the browser cache(everything from beginning).

It works fine.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!