<?php require_once(__DIR__ . '/../SmartSession.php');
SmartSession::getInstance()->set('value', 123);
$json = array( 'value' => SmartSession::getInstance()->get('value'), 'open' => SmartSession::getInstance()->sessionIsOpen(), 'exist' => SmartSession::getInstance()->sessionExists(), 'sessid' => session_id() );
header('Content-type: application/json'); echo json_encode($json); exit(0);
|