And a jsp:forward tag that redirects
Ok i know that i wrote that bad, i mean
And a jsp:forward tag that forwards
About session, i delete all from session but doesn't matter, for example i'm seeing information about my user account, and press logout button, it forwards me to, let's say, logout.jsp , that contains a <jsp:forward tag that forwards to login.jsp.
Logout.jsp contains a javascript that automatically makes the same that does browser Forward button, so i hope that, when i'm in login.jsp and press the back button of the browser, it sends me to logout.jsp and because logout.jsp has that javascript code, it bounces me to login.jsp. But the problem is that it doesn't do that, back button sends me to the page where i was seeing information about my user account. Obviously, if inside it i press a link on the menu or something like that, user authentication logic is triggered and it redirects me to some page that indicates that my session has expired, but i dont'w want to permit that situation.
So it looks like the jsp that contains <jsp:forward isn't cached or something like that.