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
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
Any suggestion is welcome. Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
if you don't want user to see then, you should use post instead of get.
ASKER
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.
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...
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...
ASKER
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
when I hited the IE back button. The javascript is simple as:
<script language = "Javascript">
history.forward(-1)
</script>
Thanks anaway
ASKER
<%
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?