找到文件: /usr/local/php/etc/php.ini 搜索: session.auto_start = 0 修改为 session.auto_start = 1 保存即可! 转载于:https://www.cnblogs.com/richerdyoung/p/6732141.html