芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/minscoop.com/app/Config/Session.php
*/ public string $driver = 'CodeIgniter\Session\Handlers\DatabaseHandler'; /** * -------------------------------------------------------------------------- * Session Cookie Name * -------------------------------------------------------------------------- * * The session cookie name, must contain only [0-9a-z_-] characters */ 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 = 2592000; /** * -------------------------------------------------------------------------- * Session Save Path * -------------------------------------------------------------------------- * * The location to save sessions to and is driver dependent. * * For the 'files' driver, it's a path to a writable directory. * WARNING: Only absolute paths are supported! * * For the 'database' driver, it's a table name. * Please read up the manual for the format with other session drivers. * * IMPORTANT: You are REQUIRED to set a valid save path! */ public string $savePath = 'ci_sessions'; /** * -------------------------------------------------------------------------- * Session Match IP * -------------------------------------------------------------------------- * * Whether to match the user's IP address when reading the session data. * * WARNING: If you're using the database driver, don't forget to update * your session table's PRIMARY KEY when changing this setting. */ public bool $matchIP = false; /** * -------------------------------------------------------------------------- * Session Time to Update * -------------------------------------------------------------------------- * * How many seconds between CI regenerating the session ID. */ public int $timeToUpdate = 3600; /** * -------------------------------------------------------------------------- * Session Regenerate Destroy * -------------------------------------------------------------------------- * * Whether to destroy session data associated with the old session ID * when auto-regenerating the session ID. When set to FALSE, the data * will be later deleted by the garbage collector. */ public bool $regenerateDestroy = true; /** * -------------------------------------------------------------------------- * Session Database Group * -------------------------------------------------------------------------- * * DB Group for the database session. */ public ?string $DBGroup = null; /** * -------------------------------------------------------------------------- * Construct * -------------------------------------------------------------------------- * */ public function __construct() { parent::__construct(); $this->cookieName = !empty(getenv('cookie.prefix')) ? getenv('cookie.prefix') . 'session' : 'vr_session'; } }