近日筆者從PHP 5.3升級到PHP 5.6不能更改頭信息的setcookie
但我在我的代碼收到一個錯誤:
Warning: Cannot modify header information - headers already sent by (index.php:1) in core.php on line 2927
LINE 2927
setcookie(COOKIE_TOKEN, NULL, -1);
COOKIE_TOKEN是:
define('COOKIE_TOKEN', 'name');