ASP.NET offers a “Cache” object that is shared across the application and can also be used to store various objects.

The “Cache” object holds the data only for a specified amount of time and is automatically cleaned after the session time-limit elapses.