My sessions in Codeigniter are timing out in less time than I specified in the "config/constants.php" file. I set that constant to 3600 seconds (one hour) but sometimes I get kicked out in 5 or 10 minutes. This happens in regular MVC calls, no ajax involved.
I'm trying to access the last_activity value in the CI session, but this is what the CI documentation currently states: "last_activity: Depends on the storage, no straightforward way. Sorry!"
So how can I access that value? Any ideas?
Here's some additional info:
`$config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = EXPIRE_SESSION; $config['sess_save_path'] = sys_get_temp_dir(); $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 86400; $config['sess_regenerate_destroy'] = FALSE;'
config.php
, please try once with hard-coded value : 3600 - kishor10dAPPPATH . 'cache/sessions/';
- Mr. ED