我想你的操作系统应该是windows系列,那你有tmp这个文件夹吗? 查看你的php.ini文件(一般在c:\windows\或者c:\winnt\目录下) ; Argument passed to save_handler. In the case of files, this is the path ; where data files are stored. Note: Windows users have to change this ; variable in order to use PHP's session functions. session.save_path = C:\PHP\sessiondata ; argument passed to save_handler修改session.save_path 就是指定你的临时路径的,看看是否存在?修改了php.ini文件,记得要重启服务呦
查看你的php.ini文件(一般在c:\windows\或者c:\winnt\目录下)
; Argument passed to save_handler. In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this
; variable in order to use PHP's session functions.
session.save_path = C:\PHP\sessiondata ; argument passed to save_handler修改session.save_path 就是指定你的临时路径的,看看是否存在?修改了php.ini文件,记得要重启服务呦