Hi All,
I am trying to develop a web application in which I have provided a facility for login and logout. The problem I am facing is that I can allow user to log in succesfully, but when user clicks on the logout link and comes to login page and after that if he presses the browser's BACK button, he is directed to the previous page. Can anyone provide me with the sample code to avoid this, please? Thanks.....

thnx for the reply. but it would be much better if you could provide the source code for the same using jsp or sevlets.

also can u please help me by giving some small example..

Examples are there, plus there is whole article linked from ~s.o.s~. If you cannot be bothered to try them then it is not my problem. I'm sorry

session.invalidate();

will do that for you...:icon_wink:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.