1 2 3 4 5 6
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; global $isLoggedIn; header("Content-Type: text/plain"); die($isLoggedIn ? "VALID" : "ERROR");