Paras Dalsaniya
Paras Dalsaniya

Reputation: 109

codeigniter Automatic Logout issue

My site some times automatic logout so how can i stop this logout problem ?

This is the my config variable and codeigniter version is 2.2.0

$config['sess_cookie_name']     = 'ci_session';
$config['sess_expiration']      = 0;
$config['sess_expire_on_close'] = false;
$config['sess_encrypt_cookie']  = true;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']      = 'ci_sessions';
$config['sess_match_ip']        = true;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 7200;

Upvotes: 1

Views: 7003

Answers (3)

Anas El-Bharawy
Anas El-Bharawy

Reputation: 11

You can go to config.php and set

$config['sess_time_to_update'] = 9000;

Upvotes: 1

Mohsin Shoukat
Mohsin Shoukat

Reputation: 1250

I also face same issue auto logout. In config file set your sess_match_useragent value to false and test it, this work for me after three hour of digging on google.

$config['sess_match_useragent'] = FALSE;

Upvotes: 0

Saty
Saty

Reputation: 22532

You can go to config.php and set

$sess_expiration = 100000;//accroding to your requirment. (7200 is the default)

Upvotes: 3

Related Questions