For access to the SessionHTTP handler, you must explicitly implement the interface IRequiresSessionState.
Keep in mind that if you do this, there will be an implicit lock on the session object, and you will not be able to process multiple handlers in the same session state at the same time.
There is also an interface IReadOnlySessionStatefor accessing a read-only session.
source
share