Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i have the login form with remember me check box when they click remember me i need to store the details and again i need to bind that in login form when they again login i get the username but password is not showing


C#
username_id.Value = Request.Cookies["UserName"].Value; password.Attributes.Add("value", Request.Cookies["PassWord"].Value);


i am using html controls with
HTML
runat=server
Posted
Updated 25-Jun-14 2:56am
v3
Comments
CHill60 25-Jun-14 8:24am    
"Remember Me" functionality only works for User names / logon ids. You absolutely do not want to "remember" the password and send it in the html ... there wouldn't be much point in having a password if anyone can read it
ramjiricky 25-Jun-14 8:46am    
thanks for you reply sir..do you know how to bind the password
Pravin Patil, Mumbai 25-Jun-14 8:58am    
Simple answer - You shouldn't. Password is sensitive data and binding it back from server means you would expose it to the threats. Don't bind.
Jafarinejadvazifehkhorani 25-Jun-14 10:44am    
could you provide the code of your login page and also web.config

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900