Expires) < strtotime('now')) { $token->delete(); http_response_code(410); header('Content-Type: text/plain'); exit; } $user = Database\Cookie::fromDB($TOKEN); http_response_code(200); header('Content-Type: text/plain'); echo $user->Username; } catch(Exception $e) { http_response_code(401); header('Content-Type: text/plain'); echo 'Bad token!'; } exit;