简体   繁体   English

在网络配置(经典ASP,IIS 6.0)中将cookie定义为安全和仅HTTP。

[英]Defining cookie as secure and httponly in web config (Classic ASP, IIS 6.0).

I need to declare all ASP cookies as secure and httponly . 我需要将所有ASP cookie声明为secure和httponly The code is in Classic ASP and IIS ver is 6.0 . 该代码在Classic ASP中, IIS ver is 6.0

The cookie has been defined as follows: cookie已定义如下:

<sessionState
mode="InProc"
stateConnectionString=""
sqlConnectionString=""
cookieless="false"
timeout="20"
/>

Is there a way in which I can change the properties of the cookies created by the application? 有什么方法可以更改应用程序创建的cookie的属性?

that is not possible for classic asp. 这是经典ASP无法实现的。 furthermore you are showing code of the web.config, right? 此外,您正在显示web.config的代码,对吗? taht file has absolutely nothing to do with classic asp... taht文件与经典asp绝对无关...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM