Getting Session in Http Handler ashx
Posted
by prakash
on Stack Overflow
See other posts from Stack Overflow
or by prakash
Published on 2010-02-24T19:58:31Z
Indexed on
2010/05/23
17:41 UTC
Read the original article
Hit count: 345
asp.net-mvc
|httphandler
Hi All,
I am using Http Handler ashx file for showing the images. I was using Session object to get image and return in the response
Now problem is i need to use custom Session object its nothing but the Wrapper on HttpSession State But when i am trying to get existing custom session object its creating new ... its not showing session data , i checked the session Id which is also different Please adive how can i get existing session in ashx file ?
Note: When i use ASP.NET Sesssion its working fine
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class GetImage : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
© Stack Overflow or respective owner