session_start hangs

前端 未结 11 1125
野趣味
野趣味 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 07:18

    If this helps:

    In my scenario, session_start() was hanging at the same time I was using the XDebug debugger within PHPStorm, the IDE, on Windows. I found that there was a clear cause: Whenever I killed the debug session from within PHPStorm, the next time I tried to run a debug session, session_start() would hang.

    The solution, if this is your scenario, is to make sure to restart Apache every time you kill an XDebug session within your IDE.

提交回复
热议问题