after logout jsp retain values

hi,

I am developing simple three page application. first one login page second confirmation page that displays the name of user who logged in and it has also link for logout, which is logout.jsp page.

I wirtten session.invalidate() in logout.jsp, but when i press window's back button it again shows the confirmation page as well as the username that was stored in session variable.

I want to know if it is distroying all seesion , how i can see it again, rather i should see "the page has been expired' kind of messag.

thanx fro any help

Manoj

[584 byte] By [cooljassia] at [2007-11-27 7:57:58]
# 1

if u press windows back button obviously it will show u the previous page even though u invalidated the session. This is bcoz page is not submitted when u press back button instead it just retrieves the page from cache memory. but if u try to perform any other action in that page then it will show u error. In ur case u r just displaying the user name. If u have any submit action in that page then u can try checking it out.

Thanuja.

thanua at 2007-7-12 19:39:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...