In a .net core application, I have an ISessionService (it just contains various reusable properties, like the current "Company" based on what the currently URL is.