11 lines
218 B
PHP
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"));
|
|
} |