Dear All,
1. I am using an application to send a URL with parameters to a JSP page.
Eg: http://localhost/test.jsp?user=abc&det=rrrr I'll like to hide the information posted through the Parameters. These Parameters are not submitted from a Html/Jsp.
Secondly would like to know how can we expire the page if the URL is tempered?
1. I am not passing parameters through a JSP/Servlet. I am calling web tool of the application to set a URL with parameters, i.e : http://localhost/test.jsp?user=abc&det=rrrr.
In this case if user can copy the URL and modify some parameters and it can be used again with the changed parameters. If I would have been sending the parameters through Html/Jsp page then can use the POST method.
How to terminate the session if the URL is tampered with ?
I don't think there is a Straight forward way to expire the session when the the user fiddles with the URL parameters.
The One possible trick can be Encrypt the Parameter with some Private key and send the Encrypted Parameter.Decrypt the same in your Application.Assuming the Web tool is secured enough to have the Private key.This approach does have flaws but you can always experiment . Surley this will not expire the session you can also use Hashing and some other Cryptographic technique..... Explore.