Example #1
0
 /**
  * Check the session variable to see if the user is logged in
  * 
  * @return boolean
  */
 public static function isLoggedIn()
 {
     // Check whether the session index with the SESSION_KEY
     // has been set
     if (Session::keyExists(self::SESSION_KEY)) {
         return true;
     } else {
         return false;
     }
 }