Time out for session object in ASP.NET MVC

How to specify time out for the session object?

To set the timeout period for the session (after which the session data expires or deleted from the server memory), we set Timeout property of the session object.
Session.Timeout = 30; // time out in minutes
Data stored in the Session for this specific user, gets expired after 30 minutes.

No comments:

Post a Comment

How to register multiple implementations of the same interface in Asp.Net Core?

 Problem: I have services that are derived from the same interface. public interface IService { } public class ServiceA : IService { ...