thinkphp5 报错 session_save_path(): Cannot change save path when session is active 解决方法

session_save_path(): Cannot change save path when session is active


报错原因是php.ini配置

session.auto_start = 1

更改为

session.auto_start = 0