title: HttpContext.Current.Session is Confused in Asp.net MVC 3.0
body: <p>I'm working with an ASP.net MVC3.0 application and I keep Current User information in the Session of Current HttpContext.</p>
  
  <p>As I know HttpContext.Current is for per current request.Therefore, my Session data should clear after the new request.However, I can receive <strong>Current User session</strong> data from request to request by storing HttpContext.Current. I did this sample for testing purpose to understand the session management in MVC 3.0.</p>
  
  <p><strong>My question:</strong> How I receive session data after current request ? I really appreciate your help. </p>
  
  <pre><code>public static UserAccountDto CurrentUser
      {
          get
          {
              if (HttpContext.Current == null)
                  return null;
  
              if (HttpContext.Current.Session[CurrentUserSessionVariable] != null)
                  return HttpContext.Current.Session[CurrentUserSessionVariable] as UserAccountDto;
  
              return null;
          }
  
          private set { HttpContext.Current.Session[CurrentUserSessionVariable] = value; }
      }
  </code></pre>