Friday, January 29, 2016

How may I access Session at an .ashx in C#?

Inherit from System.Web.SessionState.IRequiresSessionState and not just (System.Web.IHttpHandler) and then you may get at .Session off of the HttpContext defined at the ProcessRequest signature.

No comments:

Post a Comment