hi,
i'm attempting to set a cookie which determines the last page that I
visited within my aspx 1.1 application. It seemed to me that the most
logical place would be within global.asax, and in particular within;
for example
protected void Application_Beg inRequest(Objec t sender, EventArgs e)
{
HttpCookie test = new HttpCookie("tes t");
test.Values["Index"] = "POP";
HttpContext.Cur rent.Request.Co okies.Add(test) ;
}
however this doesn't work. I really didn't want to code within each
forms 'onload' event as that seemed like a manageable nightmare,
especially when global.asax should fit the bill.
Any help/idea would be greatly appreciated.
i'm attempting to set a cookie which determines the last page that I
visited within my aspx 1.1 application. It seemed to me that the most
logical place would be within global.asax, and in particular within;
for example
protected void Application_Beg inRequest(Objec t sender, EventArgs e)
{
HttpCookie test = new HttpCookie("tes t");
test.Values["Index"] = "POP";
HttpContext.Cur rent.Request.Co okies.Add(test) ;
}
however this doesn't work. I really didn't want to code within each
forms 'onload' event as that seemed like a manageable nightmare,
especially when global.asax should fit the bill.
Any help/idea would be greatly appreciated.
Comment