It's weird, my firefox has cookies disabled, yet I am still able to retrieve the cookie.
Why is this?Code:protected void Page_Load(object sender, EventArgs e) { Response.Cookies["a"].Value = "1"; } protected void Button1_Click(object sender, EventArgs e) { Label1.Text = Request.Cookies["a"].Value.ToString(); //it returns value 1 }




Reply With Quote