PHP code example of blitz-php / session
1. Go to this page and download the library: Download blitz-php/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/ */
blitz-php / session example snippets
use BlitzPHP\session\session;
$session = new session([
'handler' => 'redis',
'fallback_handler' => 'file'
]);
// Set session key
$session->set($key, $value)
// Get session key
$value = $session->get($key)
bash
$ composer