How to save the username and password
I have a remeber me in my user but want they check they will save the username and password how can I do that?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 21, 2013, 10:56 PM EDT
Please refer the below link
http://www.dotnetspider.com/forum/201070-How-implement-remember-me-next-time-feature-for-login-control-asp-net.aspx
Regards,
Iftikar
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 21, 2013, 10:56 PM EDT
http://aspsnippets.com/Blue/Articles/Implement-Remember-Me-functionality-using-CheckBox-ASPNet.aspx
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 21, 2013, 11:38 PM EDT
http://www.c-sharpcorner.com/UploadFile/8ea152/login-page-with-remember-password-code-in-asp-net-4-0/
http://chandradev819.wordpress.com/2012/12/18/how-to-implement-remember-me-functionality-using-cookie-in-asp-net/
Tan Kai Kai114 reputationPosted Jul 21, 2013, 11:51 PM EDT
If they are log in they can acsses the login page and If they are user they will be going to user page if they are admin they will go to admin page how to do that?
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 21, 2013, 11:54 PM EDT
in your login.aspx page
after validating the user
get user role
if(userRole=="Admin")
Response.Redirect("Admin.aspx")
else
Response.Redirect"Normal.aspx")
Regards.
Iftikar
Tan Kai Kai114 reputationPosted Jul 22, 2013, 12:11 AM EDT
I do not want that if the user try to go to the login page they will bring it back to the homepage of the role they are that what I mean?
I got one qns want they log in and they sgin up for event and they click save name and it will save but want I login to other account it will not show just only that account that save the name will see only can I do that?
Riyaz AkhtarRank #2,275 · 619 reputationPosted Jul 22, 2013, 1:51 AM EDT
1. set Cookies["isLogout"]="true" on log-out button
2. check in login page, if Cookies["isLogout"]=="true" then do nothing, just show ur login page with cookie's username and password, so if they want can login with other user also.
3. if user has not logged out properly, mean user has closed his/her browser then check if Cookies["isLogout"]==null or Cookies["isLogout"]=="false" then call ur check login method and after success login set Cookies["isLogout"]="false"
Please let me know if i am not clear.