So basically, I am using cURL to call APIs that I can't implement natively in PHP. When I make a call though, it deadlocks my PHP session. I cannot connect to my website from another tab in my browser. If I delete the session cookie, I can connect fine. Before, when I didn't have a timeout in cURL, this would last indefinitely.
Is this just how the PHP implementation of cURL works, or is there a way around it?
As mentioned here, you might want to try to do the cURL request without having the session open, e.g. by doing session_write_close() before sending the request and session_start() after you've handled it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With