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.

← Back to Blog