近日笔者从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');