Welcome Guest, Not a member yet? Register   Sign In
Thousands of files with __ci_last_regenerate|i:1614347926;
#1

(This post was last modified: 02-26-2021, 08:03 AM by sswarnkar.)

We would appreciate any help/advice to solve this problem.
ProblemEvery second 2-5 session files are created.
Each file is about 34 bytes and has an entry like this: __ci_last_regenerate|i:1614347926;

Background: We are developing an Android app that connects to MySQL in the CentOS server. Only a couple of engineers are testing it now.

We have spent countless hours trying to figure out why these session files are created non-stop. We are not able to figure out how to stop it or slow down the file creation.  We are not sure if there is something wrong with our Native App or the backend PHP files or with our configuration.

Details here - 

CI_VERSION: 3.1.0
PHP Version: 7.0.33
Apache Version: 2.4.46

Our Config.php looks like this:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'Del_ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH.'session/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300; /* We changed to to 0, and onlything it did was started creating empty files */
$config['sess_regenerate_destroy'] = TRUE; /* Tried FALSE and TRUE - but no difference */
Huh
php.ini has the following entries:
session.gc_probability = 1
session.gc_divisor = 1000 /* We tried with number as low as 10 */
session.gc_maxlifetime = 1440 /* We tried with 60 seconds also */


/* But the files are never deleted */


autoload.php has this entry: /* we tried to remove sessions from this list - but did not help */
$autoload['libraries'] =  array('database','Template','QueryGenerator','FormGenerator','upload','email','Generate_uid','form_validation','SearchLib','Auth','Crontab');
Reply


Messages In This Thread
Thousands of files with __ci_last_regenerate|i:1614347926; - by sswarnkar - 02-26-2021, 07:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB