鍍金池/ 問答/PHP/ TP5.1使用session報錯

TP5.1使用session報錯

在控制器中這樣設(shè)置的Session::set('username',$username);
也引入了use think\facade\Sessionuse think\facade\Cookie;
但是報錯了 這個是為什么?
圖片描述

config目錄下的session.php文件這樣的
圖片描述

回答
編輯回答
失心人

知道原因了 需要自己手動創(chuàng)建tmp目錄 坑

2017年1月4日 07:35