I
I
Ilya Trusov2016-02-24 21:16:31
CodeIgniter
Ilya Trusov, 2016-02-24 21:16:31

How to solve the problem with sessions in codeigniter?

Hello. Such situation. I use sessions in codeigniter v.3.

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'd_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = '/home/d/www/d/landing/application/sessions/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

But sessions are not overwritten, but re-created. Naturally, after some time, inodes run out or php leaves with an error that too many files are open. What to do? What is the magic?
PS There is a 3 hour time difference between me and the server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Trusov, 2016-02-25
@artgrosvil

The problem turned out to be in this library for working with rest full api.
What exactly is wrong with it, I don’t know yet, how I’ll figure it out, I’ll make a pull request on github.

E
evnuh, 2016-02-24
@evnuh

Saw about inode now, ok. Means sessions are recorded. Also, maybe you have AJAX requests? On the CI github, people have problems with recreating sessions on Ajax requests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question