title: Using Sessions throughout a website
body: <p>I've started looking at re-writing some pages on a clients website and I can see that for example as soon as somebody logs in there are <strong>53 Sessions variables</strong> set. </p>
  
  <p>To me this seems crazy to set everything as soon as you login and then throughout the website either refer back to these sessions or add new ones.</p>
  
  <p>More often than not their site receives errors because one of the many Sessions has lost its value.</p>
  
  <p>So my question is what is the best way of re-doing these pages. </p>
  
  <ol>
  <li>Is it a good idea to continue using this amount of Sessions?</li>
  <li>Is there a better alternative of using the Sessions?</li>
  <li>There are some variables that are needed on ALL pages on the site so is it better to retrieve these from the Database on each page or set these in a Session?</li>
  </ol>
  
  <p>I believe that there should only be one Session needed and that is the USERNAME/USER-ID and everything else should be grabbed from the database as and when it is needed.</p>
  
  <p>Thanks in advance</p>