Problems with PHP Session_Start
In PHP, occasionally encounter "Fatal error:maximum execution time of seconds exceeded in D:\website\controller\control.base.php on line 1 70 "error, this line is session_start. This error is often wrong when the speed is slow, and the page is stuck with new problems.
------Solution--------------------
Found in php.ini
Max_execution_time = 30;//set to the value you want, in seconds
(can also be set directly to unlimited time: max_execution_time = 0)
------Solution--------------------
Seems to have a relationship with the server.
------Solution--------------------
Session_Start the execution of such a long time is very problematic, the session theoretically read a file is not so slow, is not overloaded to access the database?
------Solution--------------------
1. Your question should be that during debugging, the access vectors are different tabs of the same browser window. Again, the tabs share a single cookie. The front is not finished, the back is only waiting
2, until the 170 lines before Session_Start, obviously your program has serious problems
------Solution--------------------
Server configuration problem, single script run time maximum is 30 seconds, please modify php.ini found in
Max_execution_time = 30;//set to the value you want, in seconds
Note: (can also be set directly to unlimited time: max_execution_time = 0) This is not very safe.
------Solution--------------------
"Fatal error:maximum execution time of the seconds exceeded in D:\website\controller means that this script runs beyond the maximum runtime of 30 seconds and resolves two kinds of methods:
The first type: Due to errors written by your program, such as a dead loop, etc.
FIX: Check code
The second type: The program needs, the code is correct, such as large file upload caused by
FIX: Modify php.ini found in
Max_execution_time = 30;//set to the value you want, in seconds
(can also be set directly to unlimited time: max_execution_time = 0)//recommendation cannot be set 0, this unsafe
------Solution--------------------
"Fatal error:maximum execution time of the seconds exceeded in D:\website\controller means that this script runs beyond the maximum runtime of 30 seconds and resolves two kinds of methods:
The first type: Due to errors written by your program, such as a dead loop, etc.
FIX: Check code
The second type: The program needs, the code is correct, such as large file upload caused by
FIX: Modify php.ini found in
Max_execution_time = 30;//set to the value you want, in seconds
(can also be set directly to unlimited time: max_execution_time = 0)//recommendation cannot be set 0, this unsafe
------Solution--------------------
You can use the auto session. So you don't have to write that statement every time.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.