/** * This method sets the initial session state. * Checks if the $_SESSION superglobal has a 'user' key, * if not set's the user as a guest in the system * * @access public * @return System_Controller_Front */ public function setSession() { if (!isset($_SESSION['user'])) { $session = new System_Session_Controller(); $session->guest(); } return $this; }
/** * validation method * * @access public * @return boolean */ public function validate() { return System_Session_Controller::isLoggedIn(); }