HTTPONLY for CLASSIC ASP Session Cookie - Strange Random Characters [Answered]RSS

1 reply

Last post Nov 14, 2013 04:09 AM by Angie xu - MSFT

  • HTTPONLY for CLASSIC ASP Session Cookie - Strange Random Characters

    Nov 12, 2013 11:30 PM|tskol777|LINK

    Hello!

    I have a problem with URL rewrite module and the rule :

    <rewrite>
    <outboundRules>
    <rule name="Add HttpOnly" preCondition="No HttpOnly" patternSyntax="Wildcard">
    <match serverVariable="RESPONSE_Set_Cookie" pattern="ASPSESSIONID*" negate="false"/>
    <action type="Rewrite" value="{R:0}; HttpOnly"/>
    <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>

    It's working, but from time to time web pages start to display strange symbols, see example below.

    It's not all time but occupationally. After IIS restart all working again for a short time and the problem appear again later.

    Could someone help me please?

  • Re: HTTPONLY for CLASSIC ASP Session Cookie - Strange Random Characters

    Nov 14, 2013 04:09 AM|Angie xu - MSFT|LINK

    Hi

    You could set applicationpPool recycles - Log a event in Windows Event Log, perhaps it can give some hints why this happens.

    For Classic ASP (Active Server Pages) in IIS 7.0, you can configure options for logging ASP errors under the ASP section in the IIS Manager. You may use the following options to discover issues when migrating your Classic ASP applications to IIS 7.0.

    Enable Log Error Requests - Controls whether the Web server writes ASP errors to the application event log

    Log Errors To The NT Log - Specifies that ASP errors are recorded in the Windows event log

    For reference: http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-pool-recycles-log-a-event-in-windows-event-log.aspx

    hope it helps,

    Regards

    Angie xu

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.