M
mortb
I have written a custom http handler and added it to the web.config file
<httpHandlers>
<add verb="GET" path="ITImageService.axd"
type="ITImageService.ITImageGetter,ITImageService" />
</httpHandlers>
The code for the handler looks like:
public bool IsReusable { get { return true; } }
public void ProcessRequest(HttpContext context)
{
if(context.Session == null) { context.Response.Write("Session is
null"); return
}
A page adds some variables to the session and calls this handler url
http://localhost/myApp/ITImageService.axd
The handler writes "session is null" when there in fact is something in the
session.Why does the handler not reach teh session?
<httpHandlers>
<add verb="GET" path="ITImageService.axd"
type="ITImageService.ITImageGetter,ITImageService" />
</httpHandlers>
The code for the handler looks like:
public bool IsReusable { get { return true; } }
public void ProcessRequest(HttpContext context)
{
if(context.Session == null) { context.Response.Write("Session is
null"); return
}
A page adds some variables to the session and calls this handler url
http://localhost/myApp/ITImageService.axd
The handler writes "session is null" when there in fact is something in the
session.Why does the handler not reach teh session?