72 lines
1.6 KiB
PHP
72 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
use CodeIgniter\Session\Handlers\BaseHandler;
|
|
use CodeIgniter\Session\Handlers\DatabaseHandler;
|
|
use CodeIgniter\Session\Handlers\FileHandler;
|
|
|
|
class Session extends BaseConfig
|
|
{
|
|
/**
|
|
* Session Driver
|
|
*
|
|
* The session storage driver to use:
|
|
* - `CodeIgniter\Session\Handlers\FileHandler`
|
|
* - `CodeIgniter\Session\Handlers\DatabaseHandler`
|
|
* - `CodeIgniter\Session\Handlers\MemcachedHandler`
|
|
* - `CodeIgniter\Session\Handlers\RedisHandler`
|
|
*
|
|
* @var class-string<BaseHandler>
|
|
*/
|
|
public string $driver = DatabaseHandler::class;
|
|
|
|
/**
|
|
* Session Cookie Name
|
|
*/
|
|
public string $cookieName = 'ci_session';
|
|
|
|
/**
|
|
* Session Expiration
|
|
*
|
|
* The number of SECONDS you want the session to last.
|
|
* Setting to 0 (zero) means expire when the browser is closed.
|
|
*/
|
|
public int $expiration = 7200;
|
|
|
|
/**
|
|
* Session Save Path
|
|
*
|
|
* For DatabaseHandler, this is the table name.
|
|
*/
|
|
public string $savePath = 'ci_sessions';
|
|
|
|
/**
|
|
* Session Match IP
|
|
*/
|
|
public bool $matchIP = false;
|
|
|
|
/**
|
|
* Session Time to Update
|
|
*
|
|
* How many seconds between CI regenerating the session ID.
|
|
*/
|
|
public int $timeToUpdate = 300;
|
|
|
|
/**
|
|
* Session Regenerate Destroy
|
|
*
|
|
* Whether to destroy session data associated with the old session ID
|
|
* when auto-regenerating the session ID.
|
|
*/
|
|
public bool $regenerateDestroy = false;
|
|
|
|
/**
|
|
* Session Database Group
|
|
*
|
|
* DB Group for the database session handler
|
|
*/
|
|
public ?string $DBGroup = null;
|
|
}
|