php - Keep session on page refresh codeigniter -
i working on application in codeigniter. want keep session after page refresh on page refresh leads login page again.
my configurations in config file :
$config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 0; // 30 * 60 //default 1800 $config['sess_expire_on_close'] = false; $config['sess_encrypt_cookie'] = false; $config['sess_use_database'] = false; $config['sess_table_name'] = 'ci_sessions'; $config['sess_match_ip'] = false; $config['sess_match_useragent'] = true; $config['sess_time_to_update'] = 3600;
gone through many links not make work. please suggest solution.
try change value of "sess_expiration"
$config['sess_expiration'] = 1800;
Comments
Post a Comment