I am using cart class and ion auth for my project, however, user will lose their cart when they logout because in the ion_auth lib logout() function call this $this->ci->session->sess_destroy(); function.
what I don’t understand is, you already unset all the login data above, why you still need to called sess_destory?
I have comment it out that line, will it make ion auth less secure?