title: Assign a custom key to a session in c#
body: <p>I'm building a .NET 6 Core MVC Application In which I want to create a session whose key is &quot;customer&quot;.
  And then I want to check on each page whether that session is valid or not. How can I do this?</p>