PHP code example of juliangut / slim-session-middleware
1. Go to this page and download the library: Download juliangut/slim-session-middleware 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/ */
juliangut / slim-session-middleware example snippets
use Slim\Slim;
use Jgut\Slim\Middleware\SessionMiddleware;
$app = new Slim();
$app->add((new SessionMiddleware())
->name('session')
->lifetime(4800)
);
php composer.phar