Posted on: 12/14/2014 9:46:18 PM | Views : 419

I am creating cookies, just as I have done before but for some reason they are not working. I have a submit button that gives me a PostBack and check to see if a textbox == "" or not. I then create cookies and redirect, like so: Response.Cookies["userName"].Value = txtName.Text; Response.Cookies["userName"].Expires = DateTime.Now.AddDays(30); Response.Redirect("myPage.aspx"); I check for the cookies on the next page, like this: if (Request.Cookies["userName"] != null) { lblUserName.Text = "Name: " + Request.Cookies["userName"].Value; lblUserName.Font.Size = 20; } For some reason, no matter what I do they are null on the next page. Please help!

Go to the complete details ...