In startup.cs I configure session with no timeout
services.AddSession(options =>
{
//options.IdleTimeout = TimeSpan.FromSeconds(10); no time out
options.Cookie.HttpOnly = true;
options.Cookie.IsEssential = true;
});
How can I change that timeout programmatically in a controller? Is there a way to set a timeout for one specific session variable? if not how can I achieve a form session where after a certain time the form wont take submission and redirects to the home page?