When using PHP to do background management will encounter the user login page will prompt Warning:session_start () [Function.session-start]: Open ... Error, followed by failed:no such file or directory, this is to tell us that the directory is not saved, let me introduce you to the problem solution
For example, our test 111.php file has the following section of code
?
Session_Start ();
$_session[' admin '] =$_post[' username '];
?>
Running Code hints
Warning:session_start () [Function.session-start]: Open (/tmpsess_84cb589ea249708b09c3d5e6836fdd0d, O_RDWR) failed: No such file or directory (2) in e:webhtdocswww.111cn.net111.php to line 9
From the above error tip is a failed:no such file or directory hint, is to tell me that the session cache to write the directory, so I know why
Solutions
The session File save directory does not exist. Build one on the line.
View in PHP.ini
Session.save_path =/tmp
Change to the path you want to save as Session.save_path = "E:/server/php5/session_temp"
Reboot the server.