I am using ASP.NET and C#.While login, if the user checked remember password then i'm storing it in a cookie.So if they login for nexttime it will be displayed in password field.
This is the code i'm using for creating cookie.
HttpCookie cookie = new HttpCookie("user");
cookie.Values.Add("username", t_uname.Text);
cookie.Values.Add("password", t_pass.Text);
Response.Cookies.Add(cookie);
So while login for nexttime i am using this.
t_uname.Text = HttpContext.Current.Request.Cookies["user"]["username"].ToString();
string pass= HttpContext.Current.Request.Cookies["user"]["password"].ToString();
t_pass.Attributes.Add("value", pass);
So instead of this i need to display the password in password field after typing the username.
Thanks..