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