I need to extend the Session Expiry Timeout/ Login Expiry Timeout in ASP.NET Core Blazor Server

Taha Attique

I am developing a Blazor Server ASP.net core app. It has Cookie based authentication using RevalidatingIdentityAuthenticationStateProvider. When I login I find '.AspNetCore.Identity.Application' Cookie in my browser.

The problem I am facing is that I want to expend Session Expiry Timeout/Login Expiry Timeout and I am unable to do so.

Right Now Situation: After 30 min of my login when I refresh the page it redirects to the login screen which shows that the session has been expired.
What I want: I want that either the session does not expire or expires after a really long time.

Help will be appreciated !

LazZiya

Configure cookie expiration settings in startup:

services.ConfigureApplicationCookie(ops =>
    ops.ExpireTimeSpan = TimeSpan.FromMinutes(30);
    ops.SlidingExpiration = true;
});

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Session Timeout/Expiry in java

Session Timeout Notification on ASP.NET core

Can we specify the CSRF token expiry timeout?

What controls the print queue expiry timeout?

ASP.NET Core - How to restart session timeout programatically

How can we read or get session timeout with jquery from web.config so that we can handle session expiry in mvc

Oracle coherence caching, specifying expiry timeout while adding the object into cache

ASP.NET CORE 2.1 Server timeout while debugging

How to change session timeout programmatically .Net Core

session timeout asp.net and authentication

Session Timeout Limit in ASP.NET?

Session Timeout doesnt work in ASP .Net

How to extend express session timeout

How can I extend expiry time of Knox-Token

ASP.NET Core SQL Connection TImeout

Keycloak Session and Token Timeout: Client login timeout

Can I add a maximum expiry date to a session cookie?

How do I display login message such as password expiry warning?

XPages (Application Timeout vs Session Timeout) vs (Server Session Timeout)

How to handle Session Expiry in ServiceWorker

Laravel Session Cookie Expiry Changing

Force Login page on token expiry

NET Core Server Side multiple session Blazor

Updating the expiry date of a cookie in ASP.NET API controller action

ASP.Net Session.Timeout - Is StateServer and Programmatic Session.Timeout Good Enough?

Spring Security SAML assertion expiry with Application Session Expiry

Can kestrel server in ASP.NET core be configured with idle timeout at startup

Configure Node HTTP server timeout when using ASP.NET Core NodeServices

How Java EE extend session lifetime/timeout