Methods of passing parameters using cookie in asp.net
- 2021-06-29 10:44:23
- OfStack
An example of how cookie is used to pass parameters in asp.net is given.Share it for your reference.Specifically as follows:
// Pass Value
HttpCookie cookie = new HttpCookie("mycookie");
cookie.Value = "cookie value ";
Response.AppendCookie(cookie);
Response.Redirect("index.aspx");
// Receive
Request.Cookies["mycookie"].Value.ToString();
I hope that the description in this paper will be helpful to everyone's C#program design.