Ron Ron - 5 months ago 30
PHP Question

How session '$config['sess_expiration']' expires in codeignitor

I want to know how session expires in CodeIgniter, because before

expires ie destroys, I want to insert the logout time of the particular user.I want to know where the flow goes so that I can write a query to insert user logout data.In which file session destroy code is.


Here you go:

if($login_var) {
   $this->session->sess_expire_on_close = TRUE;
} else {
   $this->session->sess_expire_on_close = FALSE;