Posts Tagged ‘session’
Need to access session variables in an ashx?
Posted on January 16th, 2009 • Filed under asp.net • 1 Comment
Just a quick note if you need to access session variables from an ashx, you need to implement SessionState.IRequiresSessionState or IReadOnlySessionState if you only need to read the vars
In your ashx change
Public Class yourclass : Implements IHttpHandler Implements SessionState.IRequiresSessionStat
to
Public Class yourclass Implements IHttpHandler Implements SessionState.IRequiresSessionStat