After logged out freshing the browser cache

hi all

good morning...

Here iam struggling from simple problem..can any one help me in this issue...my query is how to clear the window history after log out...

i will explain clearly here...When a user islogged in and afterlogged out if he pressed window back button it is displaying the page is expired but when we click therefresh button(f5) it will again post the data with your user name and password....and displaying the inbox page

in my java program iam invalidating the session also

request.getSession().invalidate();

here iam clearing the cache also in jsp's

But I don't know why it is happening like this...when i go through google some where it is written as it is happening with browser...The browser is storing all these previously visited pages in its history ...so when we clicks back button it is taking that page from history and displaying there......

So can any one help me how to clear the browser history......

My requirement is if user logged out if he pressed

1.back button (or)

2.refresh button (or)

3. click back button then refresh

the browser should not dispaly any thing what we previously did....it will should go to login page...

How should i do that ...

Please i requesting you guys ...give me some process...how should i do that.....its a great help for me....

other wise give me some good method to avoid this problem...that i can solve my problem here.....

Thanking you

Srikanth

[1555 byte] By [srikanth_bsba] at [2007-10-3 1:37:27]
# 1
i donk know whwther this will help you can use java script to disable the back button pls check this link http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20828609.html
arunmp25a at 2007-7-14 18:35:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi srikanth ,

I also struggled about ths problem,

i also searched for this the only thing by writing javascript we cannot go to the back page.

i am sending that code if it is helpful please use that one

the code is

<script language="Javascript">

{

window.history.forward(1);

}

</script>

by using this code u can disable the functonality of the back button

i hope it may help u tried it

if u get better than this please mail me

cheers,

Aleem Basha

aleem@1241a at 2007-7-14 18:35:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Hi aleem

thanx you for your kind help....this code is working fine...its cool...

But sorry to say this if any one disable the javascript then it will gives the same problem..and another thing is some browsers will not allow scripting....

So iam searching for some better solution....if i found ...i will definately send to you...

By the way thanx for your help...please keep in touch...

Bye

Srikanth

srikanth_bsba at 2007-7-14 18:35:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...