PHP code example of snicco / session-psr16-bridge
1. Go to this page and download the library: Download snicco/session-psr16-bridge 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/ */
snicco / session-psr16-bridge example snippets
use Snicco\Bridge\SessionPsr16\Psr16SessionDriver;
$idle_timeout_in_seconds = /* Same value as in your session config here */
$psr16_cache = /* */
$psr16_session_driver = new Psr16SessionDriver($psr16_cache, $idle_timeout_in_seconds);