Example #1
0
 /**
  * Auth::handleLogin()
  * 
  * @param string $session_key
  * @param mixed $location
  * 
  */
 public static function handleLogin($session_key = 'loggedIn', $location = null)
 {
     Cookie::startSession();
     if (!Cookie::getSession($session_key)) {
         Cookie::destroySession();
         header('location: /' . $location);
         exit;
     }
 }
Example #2
0
 public static function setLang($lang_key)
 {
     Cookie::setCookie('lang', $lang_key, -1);
 }