• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database session frequently expired (before sess_expiration)

#1
I'm using CI 3.1.10. I'm using database to save the sessions and here is my config:

$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_admin_session';
$config['sess_expiration'] = 14400;
$config['sess_save_path'] = 'ci_admin_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 14400;
$config['sess_regenerate_destroy'] = FALSE;

I have tried setting $config['sess_time_to_update'] to 300 or 14400, also setting sess_expiration to 0 (never expired)

However session still expired way before sess_expiration. I have minimal ajax call and I can't seem to find the answer.
Reply

#2
CodeIgniter User Guide - A note about concurrency
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
just to make it clear, every time after

this->session->set_userdata($some_array);

I should call
session_write_close() ?
Reply

#4
You call it when your finished with the sessions.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.