In Asp.Net Core MVC 1.0 (MVC 6 RC1) the session timeout period is specified when session support is added in the ConfigureServices
method in Startup.cs like so:
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(30);
options.CookieName = "Session";
});
My question is this: elsewhere in the application how can this IdleTimeout
value be accessed?
I would expect to find it as a property off of the HttpContext.Session object but it does not appear to be there. I've searched high and low and this doesn't seem to be documented anywhere. Thoughts?