hi, What is the idle time out setting for blazor web server. If there is no setting available, what is the default idle time out?
2 Answer(s)
-
0
- In an ABP Blazor Server app there isn’t an ABP-specific “idle timeout” setting for the server itself. The disconnect/idle behavior is governed by ASP.NET Core Blazor Server / SignalR circuit settings.
- Practically, the “idle timeout” people hit in Blazor Server is: how long the server keeps a disconnected client circuit (e.g., user closes laptop / network drops). After that period, the circuit is disposed and the user must reconnect and UI state is lost.
Where to configure it (in your Blazor Server host):
// in ConfigureServices services.AddServerSideBlazor().AddCircuitOptions(options => { // How long to keep a disconnected circuit in memory options.DisconnectedCircuitRetentionPeriod = TimeSpan.FromMinutes(3); // example });Default value
- The default for
DisconnectedCircuitRetentionPeriodis 3 minutes (Blazor Server default).
If you meant a different “idle timeout” (e.g., authentication cookie/session expiration or ABP’s Idle Session Timeout feature in Settings), that is a different mechanism and not the Blazor Server circuit timeout.
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
The Account Pro module has an Idle Session Timeout setting, and it works with Blazor Server.
You can find it in
Administration > Settings > Account > Idle Session Timeout.- It is disabled by default.
- After you enable it, the default timeout is 60 minutes. You can pick 1, 3, 6, 12 or 24 hours, or enter a custom value in minutes.
- When the timeout is reached, the user sees a warning modal. If there is no response in 60 seconds, the user is logged out.
- It doesn't apply to users who log in with
Remember Mechecked.
This setting was added in ABP 9.1.0. If your app is on an older version, you need to upgrade to see it.
https://abp.io/docs/latest/modules/account/idle-session-timeout
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)