<p>I have two PHP scripts, both using the same session by calling <code>session_name('MySessID')</code>.</p>

<p>When the first script calls the second script using curl, the second script hangs when <code>session_start()</code> is called.</p>

<p>Why would this happend?</p>

I don't totally understand why this happens, but I got it solved.
This
bug
describes the same problem I'm having. I have a scripts posting to another script,
both using the same session
, which apparently stalls PHP.
So, before I do the whole curl post script, I call the
```
session_commit
```
function, so ending the calling scripts session, and enabling the called script to restart the session.
Whack...