I'm having a problem logging out my system until it is logging out correctly and destroying the sessions, but if the user clicks the back button of the browser it returns to the previous page of the system where all data is displayed again . The code looks like this:
public function logout()
{
$this->session->sess_destroy(); //destroi a sessao
redirect('/'); // redireciona para a raiz do sistema(pagina de login)
}
Even if you destroy the session, it can access the previous page of the system, the session checks inside the program are correct, because if it clicks on a link and goes to another module it will be expelled from the system.
Can anyone help me ?? Thanks:)