Cookies to Store Data like Password

Baimey
Posted by Baimey under ASP.NET category on | Points: 40 | Views : 1041
Assign:

Response.Cookies["Password"].Value = txtPassword.Text;
Response.Cookies["Password"].Expires = DateTime.Now.AddMonths(2);

Retrieve:

if (Request.Cookies["Password"] != null)
txtPassword.Text.Attributes.Add("value", Request.Cookies["Password"].Value);

Comments or Responses

Login to post response