title: How to get specific information from a session List
body: <pre><code>(List&lt;Fruit&gt;)Session["listSession"]
  </code></pre>
  
  <p>the session  list is created in my home page.
  and i would like to access information on another page </p>
  
  <p>I would like to loop throw </p>
  
  <pre><code>if ((List&lt;Fruit&gt;)Session["listSession"].name == "apple ")
  {
  item.(access a method in my fruit class)
  }else {
  // do something else
  }
  \
  </code></pre>