经测试代码如下:
<?PHP
/**
* CodeIgniter删除、设置Cookie
*
* @param
* @arrange (512.笔记) jb51.cc
**/
$cookie = array(
'name' => 'loggedin','value' => 'yes','expire' => '86500','domain' => '.apol0829.dev','prefix' => 'apollidon_'
);
set_cookie($cookie);
$cookie = array(
'name' => 'loggedin','value' => '','expire' => '0','prefix' => 'apollidon_'
);
delete_cookie($cookie);
/*** 来自:编程之家 jb51.cc(jb51.cc) ***/
?>
原文链接:https://www.f2er.com/php/528776.html