Link to home
Start Free TrialLog in
Avatar of mazwato99
mazwato99

asked on

Destroy parameter?

Hi,

I have a logon form that passes two parameters (name and pass). I wan't to know if it's possible

once I get the pass parameter with request.getParameter("pass") to destroy it after.

Any suggestion is welcome. Thanks
ASKER CERTIFIED SOLUTION
Avatar of Kuldeepchaturvedi
Kuldeepchaturvedi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mazwato99
mazwato99

ASKER

The is that, if I go back In the history with the navigator back button, it keeps the request in memory. I force the navigator not to keep cache with:

<%
    response.setHeader ("pragma", "no-cache");
    response.setHeader ("Cache-Control", "no-cache");
    response.setHeader ("Expires", "-1");
%>

in my JSP but the request seems to stay? Any suggestion?
that's the IE's history, there is nothing your server side can do with it. is this causing you any problem?

if you don't want user to see then, you should use post instead of get.
I use the post methoid in my form.

IE show the IE expiration page which says you can refresh the page to resend the information and it

resends the name and the pass which I don't wan't.
well thats the common behaviour in most of the cases....... may be putting a timestamp somewhere will help in this case...

like when the first hit comes to the server you put a timestamp in the session.... which signifies the first login....

now when the request hits the server again, you check the session to see if the time stamp is there... if it is there then it means that the request is not hitting the server for the first time...

I solve my problem!!! I put a javascript in the page which showed "Page expiration.....Refresh page"

when I hited the IE back button. The javascript is simple as:

<script language = "Javascript">
history.forward(-1)
</script>

Thanks anaway