设置HttpOnly=true的cookie不能被js获取到,没法用document.cookie打出cookie的内容。服务器
Secure属性是说若是一个cookie被设置了Secure=true,那么这个cookie只能用https协议发送给服务器,用http协议是不发送的cookie