-
ABP Framework version: v7.0.3
-
UI type: MVC
-
DB provider: EF Core
-
Tiered (MVC) or Identity Server Separated (Angular): yes
-
Exception message and stack trace:
-
Steps to reproduce the issue:"
I tried to increase user session timeout but not successfully. I searched and added this code to both AuthServerModule and WebModule but no luck, the session is still expired after ~ 60 minutes (I guess). Pls help:
context.Services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromDays(1);
});
context.Services.Configure(options =>
{
options.ValidationInterval = TimeSpan.FromDays(1);
});
13 Answer(s)
-
0
Hi,
Can you try this one please ?
context.Services.Configure<SecurityStampValidatorOptions>(options => options.ValidationInterval = TimeSpan.FromHours(24));
-
0
Hi,
In which module should I try that code?
-
0
context.Services.ConfigureApplicationCookie(options => { options.ExpireTimeSpan = TimeSpan.FromDays(1); }); context.Services.Configure(options => { options.ValidationInterval = TimeSpan.FromDays(1); });
I tried to add above code to both AuthServerModule and WebModule but it doesn't fix the issue.
-
0
context.Services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromDays(1);
});
context.Services.Configure<SecurityStampValidatorOptions>(options =>
{
options.ValidationInterval = TimeSpan.FromDays(1);
}); -
0
CB button is very strange: I copy and paste, it auto remove <SecurityStampValidatorOptions> part
-
0
Hello duyan11110
Is it user logging out or unauthorized after 60 mins automatically?
-
0
Hi,
Unauthorized after 60 mins automatically.
-
0
Hi,
could you please share the screenshot for the OpenIddict settings for the web client which is under administration -> OpenIddict ->Applications
-
0
Hi,
-
0
Hi
can you try after allowing "Allow Refresh Token Flow"?
-
0
Hi,
OK, let me try and monitor.
-
0
Hi
If my previous answer will not help you then please try this link
https://github.com/abpframework/abp/blob/1863a619f172634b2eb4842f0c241c40a9642c91/docs/en/Modules/OpenIddict.md?plain=1#L425 -
0
Hi
If my previous answer will not help you then please try this link
https://github.com/abpframework/abp/blob/1863a619f172634b2eb4842f0c241c40a9642c91/docs/en/Modules/OpenIddict.md?plain=1#L425Hi,
This one is the solution for my issue. Thanks.