hi jyothsna
lets clear a few things first...
suppose you are in logout.jsp and u click on a link which redirects the user to login.jsp but when user hits back button here in login .jsp then u don't want the user to show logout.jsp.. u want him to show login.jsp instead..
now few things...
it is not possible atleats for me to stop a user from going back... as i donno the code to disable the back button..
but what we can do instead is that
1. we can write this
in the
<head></head> tag of logout.jsp..
this will not allow the browser to cache the page and when user clicks back button then he will get a message as
This Page has Expired 2. now to achieve the second part.. i.e. redirecting the user to login.jsp
now suppose we are in logout.jsp and clicked on link ot go to login.jsp and then hit the back button.. this will give the error page.
and now i say refresh .. here we can send the user to login.jsp
for this u will have to write the following code in logout.jsp
this code will force the user to go to login.jsp
i will be surprised to know if this doesn't work as it works for me..
if some error comes then let me know the excat error message and the excat flow.. then i might be avle to help in much better way..
Thanks
Amit