标签:删除 cookie 设置
CodeIgniter删除和设置Cookie的方法代码:
$cookie = array(
$cookie
=
array
(
‘name‘ => ‘loggedin‘,
‘name‘
=>
‘loggedin‘
,
‘value‘ => ‘yes‘,
‘value‘
‘yes‘
‘expire‘ => ‘86500‘,
‘expire‘
‘86500‘
‘domain‘ => ‘.apol0829.dev‘,
‘domain‘
‘.apol0829.dev‘
‘prefix‘ => ‘apollidon_‘
‘prefix‘
‘apollidon_‘
);
set_cookie($cookie);
set_cookie(
‘value‘ => ‘‘,
‘‘
‘expire‘ => ‘0‘,
‘0‘
delete_cookie($cookie);
delete_cookie(
//代码源自codego.net
CodeIgniter删除和设置Cookie
原文地址:http://10086835.blog.51cto.com/10076835/1629557