xmlrequest->{'STATUS'}=="OK") { $_SESSION['loggedin'] = true; $_SESSION['username'] = $v_user; $_SESSION['start'] = time(); $_SESSION['expire'] = $_SESSION['start'] + (5 * 60); } else { session_destroy(); header("Location: ../index.html"); die(); } ?>