This article describes how to solve the Fatalerrorsession_start () error in PHP. it focuses on the troubleshooting steps and can solve the error step by step. For more information, see
Error message:
Fatal error: session_start () [function. session-start]: Failed to initialize storage module: files (path:) in C: \ usr \ phpMyAdmin \ libraries \ session. inc. php on line 75
I. modify the server configuration:
1. check the error. log (Apache2.2 \ logs) file to check whether an error report exists. Not found.
2. check whether the value of session. save_handler in php. ini is files.
3. check whether the session. save_path in the php. ini file has been commented out. If yes, remove the preceding ";".
4. change the path after save_path to an existing path, for example, "D: \ php \ temp"
5. check whether the properties of the temp folder are readable and writable.
6. restart the APACHE server. OK
II. change the session storage path in the php program
The code is as follows:
$ SessSavePath = dirname (_ FILE _). "/../cache/sessions /";
If (is_writeable ($ sessSavePath) & is_readable ($ sessSavePath ))
{
Session_save_path ($ sessSavePath); // key change session storage path
}