Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to add remember me feature in login page using checkbox
Posted
Updated 7-Jan-13 8:06am
v2
Comments
bbirajdar 7-Jan-13 13:17pm    
(click-)check the check box
SoumenBanerjee 7-Jan-13 13:47pm    
Do you want to add remember me feature in login page using checkbox please clarify..
sanjiv yadav 7-Jan-13 14:04pm    
yes
sanjiv yadav 7-Jan-13 14:12pm    
I want to add remember me feature in login page using checkbox plz tell me sir
SoumenBanerjee 7-Jan-13 14:16pm    
Then set cookies from your code.
folow the links
http://www.codeproject.com/Questions/317769/cookies-in-csharp-asp-net
http://www.dotnetspark.com/kb/178-remember-me-option-asp-net.aspx
http://msdn.microsoft.com/en-us/library/ms178340.aspx
I think these will help you to implement.

1 solution

If you are using Membership[^], then it is already there, as part of the Membership enabled Login control. If you aren't, then you are making life difficult for yourself at every stage of your website, and probably reducing security by a significant amount.

If you must home brew the security mechanism, then it isn't difficult to add "remember me" - all you have to do is add a cookie value which is the user id, then store it when the user logs in and read it when you load a page.

But I'd use Membership instead if I was you.
 
Share this answer
 

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