PHP code example of quioteframework / session-redis
1. Go to this page and download the library: Download quioteframework/session-redis 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/ */
quioteframework / session-redis example snippets
$manager = new \Quiote\Session\SessionManager(
new \Quiote\Session\Redis\RedisSessionPersistence(
new \Predis\Client('redis://127.0.0.1:6379'),
prefix: 'session:',
ttl: 1440, // seconds; Redis expires the key itself, no GC pass needed
),
);