Last post Mar 15, 2007 05:16 PM by Jason Plante
Aug 24, 2006 12:25 PM|Russ Painter|LINK
In my global.asax.cs I have
public override string GetVaryByCustomString(HttpContext context, string custom)
The problem is that at this point the context.session is null. It would be great if I could force the session to be initialized before this point so that I could use session variables to vary the page output caching.
Aug 31, 2006 04:14 AM|RussPainter|LINK
Mar 15, 2007 05:16 PM|Jason Plante|LINK
Try having the global.asax inherit from System.Web.HttpApplication and see if that allows you to cache based on a session variable.
<%@ Application Inherits="System.Web.HttpApplication" %>