听起来像是会话阻止问题
默认情况下,PHP将其会话数据写入文件。当您使用session_start()启动会话时,它将打开文件进行写入并锁定该文件以防止并发编辑。这意味着对于每个使用会话通过PHP脚本的请求,都必须等待该文件完成第一个会话。
解决此问题的方法是将PHP会话更改为不使用文件或关闭会话写,如下所示:
<?php session_start(); // starting the session $_SESSION['foo'] = 'bar'; // Write data to the session if you want to session_write_close(); // close the session file and release the lock echo $_SESSION['foo']; // You can still read from the session.



