Session data in http handler

Jan 7, 2009 at 8:33 AM
I almost got everything working. However, anyway we can access session data inside the handler? I looked at the context.Session and it's empty.

Jan 8, 2009 at 4:01 PM

You will need to have the FileUpload httpHandler implement the IRequiresSessionState interface:

using System.Web.SessionState

public class FileUpload : IHttpHandler, IRequiresSessionState

Hope this helps,


Jan 9, 2009 at 4:15 AM
That's it. This makes life a little easier. Everything is working good so far for my application. I will let you know if I see any problem in the production environment. Thanks.