title: OO PHP multiple 'methods'?
body: <p>This isn't a direct code question, but more of request for guidance.</p>
  
  <p>I'm fairly new to OO PHP, I'm usually an old school developer, but I want to do things the modern way, perhaps the right way.</p>
  
  <p>I am going to 3 SEPERATE protected areas. I've written a class called Account, but rather than create 3 instances of this class - because this is a global class and I don't want to create a new instance of it inside individual pages - I want to have something like this for example:</p>
  
  <pre><code>$account = new Account();
  $account-&gt;areaOne-&gt;login();
  $account-&gt;areaTwo-&gt;login();
  $account-&gt;admin-&gt;login();
  </code></pre>
  
  <p>Few things to point out...</p>
  
  <ul>
  <li>The difference between each of the instances is the Session variable.</li>
  <li>Each of the different account information (username/passwords) are stored in different tables</li>
  </ul>
  
  <p>So here's my questions:</p>
  
  <ol>
  <li>Is this even possible</li>
  <li>What's the logic behind this</li>
  <li>Where would be a good place to start</li>
  <li>Is this even a good way of doing what I need?</li>
  </ol>
  
  <p>Sorry for my noobiness, but I wouldn't even know what to search for on Google.</p>