Activities of "maliming"

Answer

hi

Can you share a test project with liming.ma@volosoft.com

Thanks.

Answer

hi

I tested and it works.

Answer

hi

Can you share your email configuration?

liming.ma@volosoft.com

I will test it in 9.0.4

Answer

hi

You can test your email configuration by this sample.

Thanks.

https://github.com/abpframework/abp-samples/tree/master/EmailSendDemo

hi

Please check and share the Debug logs of this reqeust.

https://abp.io/support/questions/8622/How-to-enable-Debug-logs-for-troubleshoot-problems

Answer

hi

how can I programmatically revoke user sessions?

There are few method to revoke session in IdentitySessionManager , You can inject it then call the revoke method.

 RevokeAsync(Guid id)
 RevokeAsync(string sessionId)
 RevokeAsync(IdentitySession session)
 RevokeAllAsync(Guid userId, Guid? exceptSessionId = null)
 RevokeAllAsync(Guid userId, string device, Guid? exceptSessionId = null)

hi

To reproduce as I noticed: you wait (without any actions somtimes) till Token expired but not the cookie,

The CheckTokenExpiration method will check your access_token. It will log out the cookies if the token is invalid.

Can you set a breakpoint on this method to see what happened?

https://github.com/abpframework/abp/blob/3616e843cfdee671317941fe5b478c1c8bd180df/framework/src/Volo.Abp.AspNetCore/Microsoft/Extensions/DependencyInjection/CookieAuthenticationOptionsExtensions.cs#L37-L77

Thanks.

Many Thanks Giuseppe

Great

hi

I tried to change cookie and Token configs but still face it.

Do you mean this?

https://abp.io/docs/latest/modules/openiddict-pro#setting-tokens-lifetime

Can you try to call CheckTokenExpiration in AddCookies?

context.Services.AddAuthentication(options =>
{
    options.DefaultScheme = "Cookies";
    options.DefaultChallengeScheme = "oidc";
})
.AddCookie("Cookies", options =>
{
    options.ExpireTimeSpan = TimeSpan.FromDays(365);
    options.CheckTokenExpiration();
})
.AddAbpOpenIdConnect("oidc", options =>
{
    options.Authority = configuration["AuthServer:Authority"];
    options.RequireHttpsMetadata = configuration.GetValue<bool>("AuthServer:RequireHttpsMetadata");
Showing 2401 to 2410 of 11533 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.