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
At codeigniter go to applications/config.php and find the below configuration.
$config['sess_expiration'] = 14400; //in seconds