Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working with .net core MVC project, in which i set the idle timeout and session expired, it should redirect to the session timeout page, where i am showing message to user, your session is auto timeout, but it's redirecting to the Identity/Account/Login path, how can i fixed It.


it redirecting to identity created path (
Identity/Account/Login
)
can i set custom URL Path for same application

Thanks,

What I have tried:

program.cs:

builder.Services.ConfigureApplicationCookie(options =>
{
    // Cookie settings
    options.Cookie.HttpOnly = true;
    options.ExpireTimeSpan = TimeSpan.FromMinutes(2);
    options.LoginPath = "/home/index";
    options.AccessDeniedPath = "/AccessDenied";
    options.SlidingExpiration = true;
   // options.Cookie.Name = GlobalConstants.AuthCookieName;
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900