Ron Ron - 3 months ago 6
PHP Question

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

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

$config['sess_expiration']
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

Here you go:

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