How exactly do you configure httpOnly Cookies in ASP Classic?

后端 未结 6 2224
失恋的感觉
失恋的感觉 2020-12-15 08:52

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

6条回答
  •  被撕碎了的回忆
    2020-12-15 09:12

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

    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.

提交回复
热议问题