For the moment though, a quick tip for people needing access to their session variables in handlers. Because a generic handler is stripped down to its bare bones, you’ll need to import your session state by including a specific interface.
<p>public class GenericHandler : IHttpHandler, IRequiresSessionState
public void ProcessRequest(HttpContext context)
context.Response.ContentType = "text/plain";
context.Response.ContentEncoding = System.Text.Encoding.UTF8;</p>
public bool IsReusable
Also remember that your session now exists as a property of the context, remember to address it as such.