“Warning: session_start(): Cannot send session cookie – headers already sent”

  • 原因:尝试开始session,但HTTP头部信息已经发送。
  • 解决方法:确保在任何输出之前调用session_start()