/** * 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; } }
public static function setLang($lang_key) { Cookie::setCookie('lang', $lang_key, -1); }