Hello what if your application when it is logout then you intentionally hit the back button on your web browser, what happened?
your application will be returned to the original page, which should be redirected to the login page. Here I share a simple trick, put on a filters.php