all session destroy in codeigniter and run a query code example
Example: destroy session codeigniter 3
# CI 3
# for spesific session
$this->session->unset_userdata('some_name');
# for all session
$this->session->sess_destroy();
# CI 3
# for spesific session
$this->session->unset_userdata('some_name');
# for all session
$this->session->sess_destroy();