Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# chrisortman 7/18/2006 11:01 AM
In ASP.net 2.0 (may have been under 1.1 also not sure) in order to have session state be available you must implement the IRequiresSessionState interface in any HttpHandlers you create. I needed to use session, so I added it to the PageHandler, not sure if everyone would want that though or not.
# martijnb 7/19/2006 11:37 AM
Well, if it is needed for session support and doesn't do any harm, I don't see any problem. Could you send a patch with the changes?

Thanks
# chrisortman 7/20/2006 2:19 PM
When sending patches do you want them emailed, posted to forum etc?

Might be overkill in this case as it's just a marker interface (like INamingContainer) so all I had to do was add it to the class declaration:
public class PageHandler : IHttpHandler, System.Web.SessionState.IRequiresSessionState
# martijnb 7/21/2006 6:03 AM
That's really all? No in that case a patch would be overkill. Changed in SVN :).