views:

27

answers:

1

Hello,

I have an IHttpHandler that implements IRequiresSessionState. Everything works fine on most servers but there are 2 servers (one IIS 7.0 and one IIS 7.5) that give me null sessions. Aspx pages are fine on every server. I've searched for hours and failed to find anything that is not related to IRequiresSessionState.

A: 

Hi,

Try by making sure you also register your handler under the system.webserver element of your web.config:

And access the session object using HttpContext.Current.Session.

poeticGeek