Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1\sess_8ab23a084b97a02872af511bfc40cea1, O_RDWR) failed: No such file or directory
Warning: session_start() [function.session-start]: open(C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1\sess_8ab23a084b97a02872af511bfc40cea1, O_RDWR) failed: No such file or directory
當出現上述的警告訊息時,代表session找不到要存放在C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/1\sess_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來存放)
參考或是複製語法時,別忘了留個言喔 ^ ^ ~