Posted on 2004-04-16
I have an aspx page called from an asp page.
When the aspx page is not spawned in a new window, everything works just fine.
However, when that same aspx page opened up in a new window. I am losing the cookies and their values are not being found? I am not sure where the hole is when spawing this new window and its driving me crazy!
THis is in II6. Here is my cookie code in the aspx code behind. Thanks, jrmcdona
HttpContext ctx = HttpContext.Current;
// Read the cookie
HttpCookie inCookie = ctx.Request.Cookies["9JHS7"];
if(inCookie != null)
ID1.Text = "Cookie value: " + inCookie.Values["ID1"].ToString();
ID2.Text = "Cookie value: " + inCookie.Values["ID2"].ToString();
ID3.Text = "Cookie value: " + inCookie.Values["ID3"].ToString();