@jerad
To increase session time in CodeIgniter, you can adjust the session configuration in the config.php
file located in the application/config
folder of your CodeIgniter installation.
Follow these steps to increase session time:
1
|
$config['sess_expiration'] = 7200; // Default session expiration time in seconds |
1
|
$config['sess_expiration'] = 3600; // Session expiration time set to 1 hour |
By increasing the session expiration time in the config.php
file, you can extend the duration for which a user's session will remain active in CodeIgniter.