static function remove($key, $domain = '/') { $_COOKIE[$key] = false; return @setcookie($key, false, time() - 3600, $domain); }
public static function logout() { session_regenerate_id(); s::remove('auth.created'); s::remove('auth.updated'); s::remove('auth.key'); s::remove('auth.secret'); s::remove('auth.username'); s::remove('auth.ip'); s::remove('auth.ua'); cookie::remove('key'); }