|
Question : generic handler ashx file
|
|
I have a site in asp.net 2.0 with C#. I have a generic handler file .ashx. I redirect to this file from another page and in this file I have the "public void ProcessRequest (HttpContext context)" with the context I can read the cookies by : context.Response.Cookies.Add(Vis_cookie); I had in other pages Session["sessionid"]. I want to read it in the file. How do I do it? Anat
|
|
Answer : generic handler ashx file
|
|
Hi, O.K. I solved the problem: I have to write: public class rdhndlr : IHttpHandler , IRequiresSessionState { and only after that the Context.Session["sessionid"] will have value.
|
|
|