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
#2

I would check the user cmod settings should be 0700 for session files.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(02-26-2021, 08:59 AM)InsiteFX Wrote: I would check the user cmod settings should be 0700 for session files.
The permissions for the session files are -rw-------. Is the execute permission required? If yes, where do I set those permissions?

Thanks for your reply. We are looking forward to resolving this issue with the help of members of this forum.
Reply
#4

That's all you should need to add and delete them.

I would double check the save path location. It could be on your providers end.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB