1. Go to this page and download the library: Download alexdin/yii2-file-session 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/ */
alexdin / yii2-file-session example snippets
'session' => [
// this is the name of the session cookie used for login on the backend
'class'=>'alexdin\filesession\Session',
'name' => 'session-name',
// dir for your path session
// create migrate if dir is not exists or use "mkdir" function
'savePath' => __DIR__ . '/../runtime/sessions',
],
Yii::$app->session->destroySession($id)
Yii::$app->session->readSession($id)
Yii::$app->session->getSessionData($id)
Yii::$app->session->getSessionFileName($id)
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.