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
mazwato99Asked:
Who is Participating?
 
KuldeepchaturvediCommented:
what do you mean by destroy?? One that request is processed... it will be gone from the system anyway!!!
0
 
mazwato99Author Commented:
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?
0
 
kennethxuCommented:
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.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
mazwato99Author Commented:
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.
0
 
KuldeepchaturvediCommented:
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...

0
 
mazwato99Author Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.