DIDS-Coursework/DIS-COMP4039-CW2-psxrp11-20450011/psxrp11-20450011_InstallationFiles/isLoggedIn.php
2022-12-03 12:57:42 +00:00

11 lines
218 B
PHP

<?php
session_start();
header('Content-Type: application/json');
if (isset($_SESSION["username"]))
{
echo json_encode(array("message" => "ok"));
}
else
{
echo json_encode(array("message" => "not logged in"));
}