title: How do I set cookie expiration to session in C#
body: <p>I am creating a website, and I'm not sure how to use sessions with cookies.  </p>
  
  <p>When sessions timeout, I want to show the username and time of the user; for e.g., username stored in cookies and session. When sessions timeout the username must be retrived from the cookies.</p>