• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why am I logged out after a short period?

#9
(06-28-2019, 02:03 AM)wapshekhar Wrote:
(06-26-2019, 07:31 PM)ratmil Wrote: Hi, I have a site developed using CodeIgniter and I recently moved everything to a new server. But I am having some problems in the new server.  After logging in with user (admin) I get redirected to login form.
PHP settings seems to be OK.
session.gc_maxlifetime = 1440
session.cache_expire = 180
session.cookie_lifetime = 0

Code:
$config['sess_expiration'] = 0;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = TRUE;

i have same situation some month ago using this config solved for me..

When using the 'files' driver the value for $config['sess_save_path'] must be an absolute path to the folder, e.g.

PHP Code:
$config['sess_save_path'] = "/var/www/project/sessions"

Read and write permissions must be set so that the webserver can use the folder.
Reply


Messages In This Thread
RE: Why am I logged out after a short period? - by dave friend - 06-28-2019, 06:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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