I am working on codeigniter and when user logout session is destroyed but when user press browser back button it take to the last visit page.
I use javascript:
window.history.forward();
but it cause effect after login pages too
this is PHP code
$this -> session -> sess_destroy();
redirect(base_url());
session
on previous page, that's why user can see prev page after back button. – Aksen P