PHP code example of flipboxfactory / craft-session-redis
1. Go to this page and download the library: Download flipboxfactory/craft-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/ */
flipboxfactory / craft-session-redis example snippets
return [
'components' => [
'session' => [
'class' => \yii\redis\Session::class,
'as session' => [
'class' => \craft\behaviors\SessionBehavior::class,
]
]
]
];