Why does session_start cause a timeout when one script calls another script using curl

前端 未结 3 1056
一整个雨季
一整个雨季 2020-12-10 18:22

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

3条回答
  •  粉色の甜心
    2020-12-10 18:29

    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...

提交回复
热议问题