1. Go to this page and download the library: Download groucho75/phmisk 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/ */
// Init the session
$ph4->sess->start();
// Set a session var
$ph4->sess->set('my_var', 1);
// Set a flash var (it will exist till next round)
$ph4->sess->setFlash('my_flash_var', 1);
// Get a session var (the 2nd argument is a default if var not found)
$ph4->sess->get('my_var', 0);