mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
better place it in the config.php
This commit is contained in:
@@ -460,6 +460,17 @@ $config['sess_match_ip'] = FALSE;
|
||||
$config['sess_time_to_update'] = 300;
|
||||
$config['sess_regenerate_destroy'] = FALSE;
|
||||
|
||||
/*
|
||||
* To make sure we do not collect infinite session we set some garbage collection settings
|
||||
* see https://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
|
||||
* and https://www.php.net/manual/en/session.configuration.php#ini.session.gc-divisor
|
||||
* and https://osvaldas.info/enabling-codeigniters-garbage-collector/
|
||||
*
|
||||
* set the probability to 1/1000 to make sure we do not collect too often
|
||||
*/
|
||||
$config['sess_gc_probability'] = 1;
|
||||
$config['sess_gc_divisor'] = 1000;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cookie Related Variables
|
||||
|
||||
Reference in New Issue
Block a user