Ron Ron - 1 year ago 78
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.

Answer Source

Here you go:

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