I have searched a lot for this topic and can’t find working solution as i need. I am using ci_sessions to store users data on db, bt when i close window and not logout then after some hours i login again then my previous session also stores in db and new session also create so duplicate session create. I also use this property
$config[‘sess_expire_on_close’] = TRUE;
but it doesn’t work. I want to destroy session when browsers get closed. I am using CI latest version.