I have an asp.net core project. two role exist in application. user role with limited access that can act in site, and admin role with complete access that can act in site and admin panel. for some of security reason I want Idle timeout of admin been short (about 30 min), and user role time out 1 day. for user role as a default I set this code
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromDays(1);
options.CookieName = "Session";
});
how can config admin role IdleTimeout?