简体   繁体   中英

session_start() maximum execution time XAMPP

I'm running a WordPress installation on XAMPP. Some files are using sessions, and I notice that any file that has session_start() will load endlessly. I always placed session_start() at the very top of the php files that are using sessions, but it still loads forever. 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. 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. Change the value to 1 from 0 .

use_only_cookies=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM