Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
1.80/5 (5 votes)
See more:
How to Do remember me coding

plz engg m new in asp.net plz helpmeout with detail
Posted

1 solution

In web application, in remember me, you can save the user name & password to the cookie. In any one visit any page, you can check the cookie that there is any user information. If user information available then user is loged in. You can do it in the Global.asax.
Example:
void Session_Start(object sender, EventArgs e)
    {
        // Code that runs when a new session is started
        if (Request.Cookies["UserCookie"] != null)
        {
            HttpCookie cookie = Request.Cookies["UserCookie"];
            string userEmail = cookie["email"];
            string password = cookie["password"];
            // you can perform your login works
       }
}
 
Share this answer
 
v2

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