Configure HttpOnly Cookies in ASP Classic and .net with web.confi

Do you want to configure httpOnly Cookies in ASP Classic and .net with web.config.

For .NET

<system.web>
    <httpCookies httpOnlyCookies="true" />

</system.web>

For Classic ASP include following

<system.webServer>
    <rewrite>
    <outboundRules>
        <rule name="Add HttpOnly" preCondition="No HttpOnly">
            <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" negate="false" />
            <action type="Rewrite" value="{R:0}; HttpOnly" />
            <conditions>
            </conditions>
        </rule>
        <preConditions>
            <preCondition name="No HttpOnly">
                <add input="{RESPONSE_Set_Cookie}" pattern="." />
                <add input="{RESPONSE_Set_Cookie}" pattern="; HttpOnly" negate="true" />
            </preCondition>
        </preConditions>
    </outboundRules>
</rewrite>

If your application bulit on both Classic ASP and .Net then include both in web.config.

Contact us for any question on this topic

10/9/2018

List of INDIA goverment sites using legacy Symantec certificate

Click here to Read Complete Article

10/9/2018

List of sites using legacy Symantec certificate

Click here to Read Complete Article

9/11/2018

Everything you want to know about Favicon checker and Generator

Click here to Read Complete Article

Search for any Payment Gateway PayPal , PayTm , BIKE BOT , Tech Help , Tech News

Click here to Contact for any Integration Help

Click here if you wants free ₹51 in bank account NOW!

Now how to make Money Online for Free

India Asian Gold Medals