用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1776|回复: 3
收起左侧

没有地方设置httponly

[复制链接]
发表于 2014-8-20 09:36:50 | 显示全部楼层 |阅读模式
CI和cookie封装怎么没有httponly的参数,我并不想客户端读取我的cookie,所以我只能用原生的PHP函数来设置
发表于 2014-8-22 09:27:24 | 显示全部楼层
http://codeigniter.org.cn/user_guide/libraries/output.html
$this->output->set_header();

使用此方法,允许你设置将会被发送到浏览器的HTTP协议的标头,作用相当于php的标准函数: header()。例如:
发表于 2014-8-22 10:35:29 | 显示全部楼层
CI3.0里加上了此项设置
发表于 2014-12-4 16:40:41 | 显示全部楼层
Altair 发表于 2014-8-22 09:27
http://codeigniter.org.cn/user_guide/libraries/output.html

这个方法,好大气{:soso_e103:}

本版积分规则