1. Go to this page and download the library: Download duncan3dc/sessions 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/ */
duncan3dc / sessions example snippets
$session = new \duncan3dc\Sessions\SessionInstance("my-app");
$session->set("current-status", 4);
$currentStatus = $session->get("current-status");
$session->setFlash("message", "Your profile has been updated");
$session->getFlash("message"); # "Your profile has been updated";
$session->getFlash("message"); # null;
use \duncan3dc\Sessions\Session;
Session::name("my-app");
Session::set("current-status", 4);
$currentStatus = Session::get("current-status");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.