How to manage Codeigniter Session Timeout?


Codeigniter session timeout value is specified in the config.php file inside the config directory. You can change the default value of 7200 seconds to any value you want using the sess_expiration variable. Session timeout can be avoided by setting the value to 0.
// Session will expire in 10 seconds
$config['sess_expiration']= 10;

// Session will not expire $config['sess_expiration']= 0;

Comments

Post a Comment

Popular Posts