[英]session_start() maximum execution time XAMPP
I'm running a WordPress installation on XAMPP. 我正在XAMPP上运行WordPress安装。 Some files are using sessions, and I notice that any file that has session_start() will load endlessly. 有些文件正在使用会话,我注意到任何具有session_start()的文件都会无休止地加载。 I always placed session_start() at the very top of the php files that are using sessions, but it still loads forever. 我总是将session_start()放在使用会话的php文件的最顶部,但是它仍然可以永久加载。 What's up? 这是怎么回事?
Does the page actually load or does it just take a long time? 该页面实际加载还是需要很长时间? If it never loads, maybe check the logs for errors to write to disk. 如果它从不加载,请检查日志中是否有错误以写入磁盘。 The session_start() function required apache to write a bit of data. session_start()函数需要apache写入一点数据。 Could it be a permissions issue? 可能是权限问题?
Just search the below line in your php.ini
file located at c:\\xampp\\php\\php.ini
to fix the issue. 只需在位于c:\\xampp\\php\\php.ini
php.ini
文件中搜索以下行即可解决此问题。 Change the value to 1
from 0
. 将值从0
更改为1
。
use_only_cookies=1
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.