Reputation: 11
Session is expired automatically in a short period after login and config setting for session in my framework is like this$config['sess_expiration']= 72000;
.
But it doesn't work and login session is expired before session time is expired.
Upvotes: 1
Views: 1030
Reputation: 2833
check your settings with these one
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update'] = 300;
Upvotes: 1