PHP code example of bemang / session-system
1. Go to this page and download the library: Download bemang/session-system 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/ */
bemang / session-system example snippets
$session = new bemang\Session\PHPSession();
$session->set('hello', 'hello world');
$session->get('hello'); //Return hello world
//or array session
$array = ["hello", "hello world !"];
$session = new bemang\Session\ArraySession($array); //Array is passed as reference
$session->set('hello', 'hello world');
$session->get('hello'); //Return hello world