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

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -