PHP code example of aesonus / session-storage

1. Go to this page and download the library: Download aesonus/session-storage library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aesonus / session-storage example snippets


$session = new Session();

$session->setKey('foo')->set('bar');

$value = $session
    ->setKey(0)->set('foo')
    ->setKey(1)->set('bar')
    ->setKey('clearme')->clear();
    ->setKey('getme')->get();