Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
i want to add remember me feature in login page using checkbox
Posted 7-Jan-13 8:11am
Edited 7-Jan-13 9:06am
v2
Comments
aspnet_regiis -i at 7-Jan-13 13:17pm
   
(click-)check the check box
Soumen_Banerjee at 7-Jan-13 13:47pm
   
Do you want to add remember me feature in login page using checkbox please clarify..
sanjiv yadav at 7-Jan-13 14:04pm
   
yes
sanjiv yadav at 7-Jan-13 14:12pm
   
I want to add remember me feature in login page using checkbox plz tell me sir
Soumen_Banerjee at 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.
Soumen_Banerjee at 7-Jan-13 14:17pm
   
please don't use 'sir'...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100