Warning: session_start() [function.session

Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1sess_8ab23a084b97a02872af511bfc40cea1, O_RDWR) failed: No such file or directory


Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1sess_8ab23a084b97a02872af511bfc40cea1, O_RDWR) failed: No such file or directory

当出现上述的警告消息时,代表session找不到要存放在C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1sess_8ab23a084b97a02872af511bfc40cea1的路径,

解决方式:

                开启php.ini文件,利用蒐寻找到

                ; where MODE is the octal representation of the mode. Note that this
               ; does not overwrite the process's umask.
               session.save_path = "C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1"

               请先确定session.save_path 前面的分号(;)是否有删除了,

               再确定C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1数据夹是否存在,

               若C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1不存在,那就自行指定放外一个存放的地方即可,

               例如:C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp         

                          (Temp数据夹正常来说系统是存在的,1的数据夹依照个人系统设定不一定存在,有可能存在是2,因此可以指定它的上一层Temp来存放)

参考或是复制语法时,别忘了留个言喔 ^ ^ ~