PHP code example of eden / session

1. Go to this page and download the library: Download eden/session 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/ */

    

eden / session example snippets


$session['me']    = array('name' => 'John', 'age' => 31);
$session['you']    = array('name' => 'Jane', 'age' => 28);
$session['him']    = array('name' => 'Jack', 'age' => 35);

foreach($session as $key => $value) {
	echo $value['name'];
}

eden('session')->get(string|null $key);

eden('session')->set(*array|string $data, mixed $value);

eden('session')->set(array('foo' => 'bar'));