解决办法: 修改php.ini中的session.auto_start = 0 为 session.auto_start = 1
you can't have any characters display before the session_start() function, otherwise you will get this error.