Warning: session_start() [function.session-start]: open(/tmp/....) failed: No such file or directory (2) in /../library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/v/a/i/vais7577/html/btlcn/index.php:109) in /../library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /../index.php:109) in /../library/session.php on line 11
建一个这个目录,tmpsession.save_path 如果有,就查一下看看有没有写入的权限
另 session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
After a lot of searches, tests and pain, the only one that worked for me was this:
session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
Debian does not use the default garbage collector for sessions. Instead, it sets session.gc_probability to zero and it runs a cron job to clean up old session data in the default directory.
As a result, if your site sets a custom location with session_save_path() you also need to set a value for session.gc_probability, e.g.:
session_save_path('/home/example.com/sessions');
ini_set('session.gc_probability', 1);
?>
Otherwise, old files in '/home/example.com/sessions' will never get removed!
建一个这个目录,tmpsession.save_path 如果有,就查一下看看有没有写入的权限
另 session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
After a lot of searches, tests and pain, the only one that worked for me was this:
session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
Debian does not use the default garbage collector for sessions. Instead, it sets session.gc_probability to zero and it runs a cron job to clean up old session data in the default directory.
As a result, if your site sets a custom location with session_save_path() you also need to set a value for session.gc_probability, e.g.:
session_save_path('/home/example.com/sessions');
ini_set('session.gc_probability', 1);
?>
Otherwise, old files in '/home/example.com/sessions' will never get removed!
0朵
0个