You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
590 B

<%@ Application Language="C#" %>
<script RunAt="server">
public override string GetVaryByCustomString(HttpContext context, string arg)
{
if (arg == "authenticated")
{
HttpCookie cookie = context.Request.Cookies[FormsAuthentication.FormsCookieName];
if (cookie != null)
return cookie.Value;
}
return base.GetVaryByCustomString(context, arg);
}
public void Application_BeginRequest(object sender, EventArgs e)
{
Context.Items["IIS_WasUrlRewritten"] = "false";
}
</script>