Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
How to do remember me functionality in asp.net identity framework?

i got the below code but its not saving cookies in the system..

C#
public partial class Startup
    {
        // For more information on configuring authentication, please visit http://go.microsoft.com/fwlink/?LinkId=301864
        public void ConfigureAuth(IAppBuilder app)
        {
            // Enable the application to use a cookie to store information for the signed in user
            app.UseCookieAuthentication(new CookieAuthenticationOptions
            {
                AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
                LoginPath = new PathString("/Account/Login")
               


            });
            // Use a cookie to temporarily store information about a user logging in with a third party login provider
            app.UseExternalSignInCookie(DefaultAuthenticationTypes.ExternalCookie);

                 }
    }



Thanks for the help in advance..
Posted
Comments
Suket shah 20-Aug-15 9:05am    
hey refer below link :

http://www.codeproject.com/Questions/383509/how-to-write-code-for-ASP-Login-Remember-Me-functi
Seshi Reddy 21-Aug-15 1:02am    
ya i came across the solution but I wanted to do it using identity framework.

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