[eluser]indapublic[/eluser]
[quote author="Cristian Gilè" date="1294609894"]Is the above code exactly your controller?[/quote]
Yes
[quote author="ignitian" date="1294629113"]You need to put the library in your controller.
$this->load->library('session');[/quote]
Library is autoloaded. Otherwise, I will get error during test.
[quote author="Cristian Gilè" date="1294649317"]What is the value for $config['sess_expiration']?[/quote]
Code:
$config['sess_expiration']= 0;
[quote author="progr@mmer" date="1294640038"]
Are you running check right after set? Are you using DB for sessions? Have you changes any of the Session Preferences?[/quote]
1) Yes, right after.
2) No, $config['sess_use_database'] = FALSE;
3) My current config for session:
Code:
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 0;
$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'] = 7200;
But I changed config to default with same result