session_start hangs

前端 未结 11 1124
野趣味
野趣味 2020-12-01 06:50

since a few hours our server hangs every time you do a session_start.

For testing purposes i created a script which looks like this:



        
11条回答
  •  情深已故
    2020-12-01 06:57

    To throw another answer into the mix for those going bananas, I had a session_start() dying only in particular cases and scripts. The reason my session was dying was ultimately because I was storing a lot of data in them after a particularly intensive script, and ultimately the call to session_start() was exhausting the 'memory_limit' setting in php.ini.

    After increasing 'memory_limit', those session_start() calls no longer killed my script.

提交回复
热议问题