G
Guest
I have the problem with Session object witch is null, when I implement IHttpHandlerFactory. Implementing IRequiresSessionState interface doesn't help.
My code is like this:
class MyController : IHttpHandlerFactory, System.Web.SessionState.IRequiresSessionState {
public virtual IHttpHandler GetHandler (HttpContext context, string requestType, string url, string path) {
//some stuff here
context.Session["aaa"] = "aaa"; // here Session object is null
return System.Web.UI.PageParser.GetCompiledPageInstance (url, "SomePage.aspx", context);
}
//...
}
How can I access the session object ? Please help !
Bartosz Krzywicki
My code is like this:
class MyController : IHttpHandlerFactory, System.Web.SessionState.IRequiresSessionState {
public virtual IHttpHandler GetHandler (HttpContext context, string requestType, string url, string path) {
//some stuff here
context.Session["aaa"] = "aaa"; // here Session object is null
return System.Web.UI.PageParser.GetCompiledPageInstance (url, "SomePage.aspx", context);
}
//...
}
How can I access the session object ? Please help !
Bartosz Krzywicki