title: How to access dynamic object stored in session
body: <p>In PHP we can store/access the associative array in session.
  How can i access them using asp.net mvc4.</p>
  
  <p>I have set the variable in session like:</p>
  
  <pre><code>Session["User"] = new { UserName = "abc", Email= "a@a.com", UserType="User" };
  </code></pre>
  
  <p>I need some mechanism to access the values like UserName form session "User" like-</p>
  
  <pre><code>string user = Session["User"]["UserName"]
  </code></pre>
  
  <p>Any Idea?</p>