Strange php problem where session_start hangs

We encountered a very strange problem in the office today where PHP’s session_start() function would appear to randomly hang. In the end the problem turned out to be that if you start a session on one script and then that script never completes executing, it will lock the session. So if you try to access the same session from a different script, your script will appear freeze indefinitely.

4 thoughts on “Strange php problem where session_start hangs”

  1. I am having the same problem, if I send 2 ajax calls directly after each other to my application, the session_start will hang forever
    do you know how to solve this problem?

Leave a Reply

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