PHP PDO installed on your server.
php.ini
Warning: session_write_close() [function.session-write-close]: open(D:/PC_websever/phproot/session\sess_17064d421eed05a3386f958e07a06ab6, O_RDWR)failed: No such file or directory(2) in D:\PC_websever\phproot\phpmyadmin\index.php on line 44
Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting ofsession.save_pathis correct (D:/PC_websever/phproot/session) in D:\PC_websever\phproot\phpmyadmin\index.php on line 44
在Windows下PHP中的session不能正常使用的解决方法
首先打开PHP的配置文件php.ini,找到session.save_path = /tmp这一行,这是PHP在linux下的配置,Windows下PHP无法读写session文件导致session无法使用,把它改成一个绝对路径就可以了,例如:session.save_path = C:\windows\temp 然後重新啓動apache
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。