how to expire “ApplicationCookie” in aspboilerplate
See original GitHub issueI am using version 2.3(angularjs). I can call methods when logout the program. Like the photo below: I use the following code to logout
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
when logout the program but claim and cookie not expire
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Setting expiration for cookie on claims based authentication
ApplicationCookie, LoginPath = new PathString("/Account/Login"), Provider = new CookieAuthenticationProvider { ExpireTimeSpan = TimeSpan.
Read more >OnValidateIdentity logs off all users #5255
ApplicationCookie ), getUserIdCallback: (ci) => (Int64.Parse(ci.GetUserId()))) }, SlidingExpiration = true, ExpireTimeSpan = TimeSpan.FromMinutes ...
Read more >How to setup password expiration using ASP.NET Identity ...
[Solved]-How to setup password expiration using ASP. ... defaultauthenticationtypes.applicationcookie); // add custom user claims here return useridentity; ...
Read more >Account Confirmation & Password Recovery - ASP.NET ...
Account confirmation and password recovery with ASP. ... ApplicationCookie); // Add custom user claims here return userIdentity; } }.
Read more >Adding minimal OWIN Identity Authentication to an Existing ...
ASP.NET 4 provides a new Identity Authentication/Authorization ... ApplicationCookie, LoginPath = new PathString("/Account/LogOn") }); app.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mehdiali22 @demirmusa @gterdem I solved the problem using the following code in startup.cs:
app.CreatePerOwinContext(() => IocManager.Instance.Resolve<UserManager>());
and
Why is this problem not fixed for this framework? Anyway, thank you all
Thanks Alireza so much. It works. I hope ABP team solve this problem in their project ASAP.