Set Session Expiration Time Manually-CodeIgniter
You can update your session expiration time by increasing this variable in config file: $config[‘sess_expiration’] = ‘somevalue’. Set $config[‘sess_expiration’] = 0, if you want it to never expire. Here’s a good discussion on CI forums: Dynamically set configuration on session expire doesn’t work