PHP Classes

File: tests/apps/session.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   PHP JSON API Server   tests/apps/session.php   Download  
File: tests/apps/session.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP JSON API Server
Handle REST API requests with functions in scripts
Author: By
Last change:
Date: 7 years ago
Size: 200 bytes
 

Contents

Class file image Download
<?php

/**
 * @API session
 */
function session(Array $args, $server)
{
   
$ret = $server['session']->get('remember');
   
$server['session']->set('remember', $args['remember']);
    return
$ret;
}