How can I set session expiration time dynamically in codeigniter?
For example, if a user logs in and has the role of admin, the expiration time should b
admin
You can solve the session issue by replacing this:
$config['sess_use_database'] = TRUE; $config['sess_encrypt_cookie'] = TRUE;
with this:
$config['sess_use_database'] = FALSE; $config['sess_encrypt_cookie'] = FALSE;