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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Riyaz AkhtarPosted Jul 22, 2013, 5:51 AM
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.
Tan Kai KaiPosted Jul 22, 2013, 4:11 AM
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?
Iftikar HussainPosted Jul 22, 2013, 3:54 AM
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 KaiPosted Jul 22, 2013, 3:51 AM
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?
Sanjeeb LenkaPosted Jul 22, 2013, 3:38 AM
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/
Riyaz AkhtarPosted Jul 22, 2013, 2:56 AM
http://aspsnippets.com/Blue/Articles/Implement-Remember-Me-functionality-using-CheckBox-ASPNet.aspx
Iftikar HussainPosted Jul 22, 2013, 2:56 AM
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