在 ASP Classic 中究竟如何配置 httpOnly Cookie? [英] How exactly do you configure httpOnly Cookies in ASP Classic?

查看:20
本文介绍了在 ASP Classic 中究竟如何配置 httpOnly Cookie?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在我的旧版 ASP 经典网站中实现 httpOnly.有人知道怎么做吗?

I'm looking to implement httpOnly in my legacy ASP classic sites. Anyone knows how to do it?

推荐答案

Response.AddHeader "Set-Cookie", "mycookie=yo; HttpOnly"

expirespathsecure 等其他选项也可以通过这种方式添加.我不知道有什么神奇的方法可以改变你的整个 cookie 集合,但我可能错了.

Other options like expires, path and secure can be also added in this way. I don't know of any magical way to change your whole cookies collection, but I could be wrong about that.

这篇关于在 ASP Classic 中究竟如何配置 httpOnly Cookie?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆