CI 3.1.9 session timeout issue |
My company project runs on CI 3.1.9 version. When there are many users logging into the system, then after some time session automatically gets timeout. I have increased the session expiration and session update in config.php. But same issue(session timeout) is happening everytime. Please help.
CI 3.x Mysql 5.x PHP 5.x
My config.php session settings
$config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 0; $config['sess_save_path'] = sys_get_temp_dir(); $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 86400; $config['sess_regenerate_destroy'] = FALSE; $config['sess_match_useragent'] = FALSE;
CI 3.x Mysql 5.x PHP 5.x
Is there be a CRON job that's periodically cleaning up session files?
@[email protected],
Has this just started happening or has it been happening for some time? What version of PHP? @Dave friend According to the CI documentation ( https://www.codeigniter.com/user_guide/l...references ) Garbage Collection cleans up the session directory.
(12-06-2018, 10:51 AM)php_rocs Wrote: @Dave friend Yes, that is true. But that does not mean that a CRON job to do the same thing cannot be running too.
(12-06-2018, 10:51 AM)php_rocs Wrote: @[email protected], No this is happening sometime. But not any specific time. PHP version 7.2.7
CI 3.x Mysql 5.x PHP 5.x
You may need to set the cookie path in ,/application/config/config.php
PHP Code: $config['cookie_prefix'] = ''; Change the .domainname.com to your host location. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(12-09-2018, 04:29 AM)InsiteFX Wrote: You may need to set the cookie path in ,/application/config/config.php I am having session timeout issue, will cookie settings solve the session issue?
CI 3.x Mysql 5.x PHP 5.x
|
Welcome Guest, Not a member yet? Register Sign In |