I have two PHP scripts, both using the same session by calling session_name('MySessID').
When the first script calls the second script using curl, the second script hangs when session_start() is called.
Why would this happend?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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_commitfunction, so ending the calling scripts session, and enabling the called script to restart the session.Whack…