I have worked with cookies so many times but first time i am writing in my blog.
I received an email from one of my sender that has issue with cookies.
I’m attempting to save a cookie which tracks the last page the user
visited whilst on my aspx 1.1 application. It seems logical to place
this code into the global.asax file within Application_BeginRequest;
such asprotected void Application_BeginRequest(Object sender, EventArgs e)
HttpCookie test = new HttpCookie(“test”);
test.Values[“Index”] = “POP”;
however this never creates the cookie… does anyone know why?
Global.asax.csprotected void Application_BeginRequest(Object sender, EventArgs e)
HttpCookie test = new HttpCookie(“MyCookie”,”Hi Buddy”);
private void Page_Load(object sender, System.EventArgs e)
Hope this will solve a problem of so many peoples.