我收到Maximum execution time of 30 seconds exceeded in D:\wamp\www\session_start.php on line 2
我将此文件放在我的所有脚本之上。而那些随机得到错误。有谁能说出发生了什么?怎么能解决这个问题?
<?php
session_start(); //this line gets the error
if (!isset($_SESSION['user_id'])) {
if (isset($_COOKIE['user_id']) && isset($_COOKIE['username'])) {
$_SESSION['user_id'] = $_COOKIE['user_id'];
$_SESSION['username'] = $_COOKIE['username'];
}
}
?>