Login   Register  
PHP Classes
elePHPant
Icontem

File: test/testGet.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Rubens Takiguti Ribeiro  >  PHP Smart Session  >  test/testGet.php  >  Download  
File: test/testGet.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script for test
Class: PHP Smart Session
Access sessions initialized only when necessary
Author: By
Last change:
Date: 2013-04-29 21:01
Size: 331 bytes
 

Contents

Class file image Download
<?php
require_once(__DIR__ '/../SmartSession.php');

$json = array(
    
'value'  => SmartSession::getInstance()->get('value'),
    
'open'   => SmartSession::getInstance()->sessionIsOpen(),
    
'exist'  => SmartSession::getInstance()->sessionExists()
);

header('Content-type: application/json');
echo 
json_encode($json);
exit(
0);