You can disable the back button on the logout page. so that user can't go back once he clicked on logout.
Add this script to the page ,
And also in your jsp ,
Another suggestion is dont blindly redirect the user to the login page if session gets expired . simply have a link to login in your logout page
Hope this helps !!