title: CakePHP user control
body: <p>So i have two models</p>
  
  <p>clients</p>
  
  <p>employees</p>
  
  <p>The main difference between these two are that employees has some different more advanced controls.</p>
  
  <p>Now regardless of what user that logs in i need to set a cookie (what the cookie does doesnt matter just to give you an idea).</p>
  
  <p>Now since my employees has more options and actions than clients there is a seperate index view for the.</p>
  
  <p>Now to my question since both types of users has to set a cookie is it possible to do this from the client login controller meaning that "unknown person tries to log in" -> "checks client model if user exists" if not "check employees controler if user exists" if true -> "set cookie " ->"go to employee view index"</p>
  
  <p>Is this possible and is it a good way to do it. Note that the reason why i need to do this is because i want to create a God like user in the clients table. My client table consists of alot of joins and it would be easier to create a "God like" user that will look the same as a normal client (kind of like a proxy).</p>