PHP code example of ericmann / sessionz
1. Go to this page and download the library: Download ericmann/sessionz 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/ */
ericmann / sessionz example snippets
$rawKey = Defuse\Crypto\Key::createNewRandomKey();
$key = $rawKey->saveToAsciiSafeString();
EAMann\Sessionz\Manager::initialize()
->addHandler( new \EAMann\Sessionz\Handlers\DefaultHandler() )
->addHandler( new \EAMann\Sessionz\Handlers\EncryptionHandler( getenv('session_passkey') ) )
->addHandler( new \EAMann\Sessionz\Handlers\MemoryHandler() )
session_start();