PHP code example of xp-forge / redis-sessions

1. Go to this page and download the library: Download xp-forge/redis-sessions 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/ */

    

xp-forge / redis-sessions example snippets


use web\session\{Sessions, InRedis};

$inject->bind(Sessions::class, new InRedis('redis://localhost'));