https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.sessionoptions.idletimeout?view=aspnetcore-10.0
SessionOptions.IdleTimeout Property (Microsoft.AspNetCore.Builder) | Microsoft Learn
The IdleTimeout indicates how long the session can be idle before its contents are abandoned. Each session access resets the timeout. Note this only applies to...
propertymicrosoftaspnetcorebuilderlearn