When using php for background management, the user logon page will prompt Warning: session_start () [function. session-start]: open... the error is followed by failed: No such file or directory. This tells us that the directory is not saved. Next I will introduce the problem solution to you.
For example, in my test 111. php file, the following code is provided:
<?
Session_start ();
$ _ SESSION ['admin'] =_ _ POST ['username'];
?>
Run code prompt
Warning: session_start () [function. session-start]: open (/empty, O_RDWR) failed: No such file or directory (2) in E: webhtdocswww.111cn. net111.php on line 9
From the error message above, the following error message is displayed: failed: No such file or directory. It indicates that the directory to be written in the session cache cannot be found, so that I can see the cause.
Solution
The SESSION file storage directory does not exist. Just create one.
View PHP. INI
Session. save_path =/tmp
Change it to the path you want to save, such as session. save_path = "E:/server/php5/session_temp"
Restart the server.