Remember Your Password Coding ??

Posted by Sf_Hussain786 under ASP.NET on 3/20/2012 | Points: 10 | Views : 2416 | Status : [Member] | Replies : 3
Hi,

I am Making Login Form using database and i want to make a checkbox for Remember Your Password, so what is the source code of this in ASP.NET using C#

Regards,
SF_Hussain786

sf_hussain786


Responses

Posted by: Sksamantaray on: 3/20/2012 [Member] Silver | Points: 25

Up
0
Down
Hi,
If you check checkbox and login , create a cookie.
Everytime before database check while login, check for existence for cookies , if no go for database checking.

Thanks,
Sanjay

Sf_Hussain786, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sf_Hussain786 on: 3/20/2012 [Member] Starter | Points: 25

Up
0
Down
Please Write a Coding for Example


sf_hussain786

Sf_Hussain786, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajni.Shekhar on: 3/21/2012 [Member] Bronze | Points: 25

Up
0
Down
Create Cookies:

HttpCookie cookie = new HttpCookie("password");
cookie.Values.Add("pwd", txtPwd.Text.Trim());
Response.Cookies.Add(cookie); //add cookie

Retrieve cookie while checking for pwd

Request.Cookies["password"]["pwd"].ToString();

Note: cookie stored at client side, so keep in mind that it is not very much secure.

Thanks,
Rajni Shekhar

Sf_Hussain786, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response