<?php require_once(__DIR__ . '/../SmartSession.php'); $json = array( 'open' => SmartSession::getInstance()->sessionIsOpen(), 'exist' => SmartSession::getInstance()->sessionExists() ); header('Content-type: application/json'); echo json_encode($json); exit(0);
info at phpclasses dot org