PHP on the system is compiled and installed, in the Session_Start () when the error!
A error message:
Warning:session_start (): Open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed:no such file or directory(2) in/www/tool/classes/service/user.php on line
1
Warning:Unknown:open (/var/lib/php/session/sess_qavhhacl7lrdbggauasf1qdlo5, O_RDWR) failed:no such file or Directory (2) in Unknown on line 0
Warning:Unknown:Failed to write session data (files). Please verify this current setting of Session.save_path is correct (/var/lib/php/session) in Unknown on line 0
B View php.ini:
Session.save_path = "/var/lib/php/session"//Session storage Path
So the text above is prompt without the directory
C Solve the problem:
Create the above directory
mkdir session
Chmod-r 777 Session
Run the program again and it's OK.
D See more:
(1)
Pwd
/var/lib/php/session
? Session LS
Sess_qavhhacl7lrdbggauasf1qdlo5
(2)
View Cookies with Firebug:
PHPSESSID qavhhacl7lrdbggauasf1qdlo5//php.ini session.name = Phpsessid
Compile and install PHP using Session_Start () times Wrong & workaround