if (chkRemember.Checked) { HttpCookie cookie = new HttpCookie("YourAppLogin"); cookie.Values.Add("username", txtUsername.Text); cookie.Expires = DateTime.Now.AddDays(15); Response.Cookies.Add(cookie); }
if (Request.Cookies["YourApLogin&"] != null) { string username = Request.Cookies["YourAppLogin"].Values["username"]); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)