How to create persistent cookies in asp.net? - Stack Overflow
I am creating cookies with following lines: HttpCookie userid = new HttpCookie("userid", objUser.id.ToString()); userid.Expires.AddYears(1); Response.Cookies.Add(userid); Now How to make it ... Here's how you can do that. Writing the persistent cookie. //...