Codeigniter - cookie不工作在Internet Explorer 8 [英] Codeigniter - cookies do not work in internet explorer 8
本文介绍了Codeigniter - cookie不工作在Internet Explorer 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此代码适用于除Internet Explorer 8之外的所有浏览器
This code works in all browsers except Internet Explorer 8
$this->input->set_cookie(array(
'name' => 'test_cookie',
'value' => 'hello from cookie',
'expire' => 360000000,
'secure' => FALSE
));
echo get_cookie('test_cookie');
如何解决这个问题?为什么不set_cookie?
How to solve this problem? Why does not set_cookie?
推荐答案
请尝试:
echo $this->input->cookie('test_cookie');
这篇关于Codeigniter - cookie不工作在Internet Explorer 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文