DIDS-Coursework/DIS-COMP4039-CW2-psxrp11-20450011/psxrp11-20450011_InstallationFiles/isLoggedIn.php

11 lines
177 B
PHP
Raw Normal View History

<?php
session_start();
if (isset($_SESSION["username"]))
{
echo json_encode(array("message" => "ok"));
}
else
{
echo json_encode(array("message" => "not logged in"));
}