TrainBeaser for iPhone
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
Author

URL Parameters

sk mehrotra
Ranch Hand

Joined: Oct 27, 2005
Messages: 34

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?

Thanks
Deepak Bala
Bartender

Joined: Feb 24, 2006
Messages: 4868

You can use request attributes to pass data to the JSP.

Secondly would like to know how can we expire the page if the URL is tempered?


How to terminate the session if the URL is tampered with ?

SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
sk mehrotra
Ranch Hand

Joined: Oct 27, 2005
Messages: 34

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 ?
Prashant Hurria
Greenhorn

Joined: Mar 23, 2009
Messages: 17

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.
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » JSP
 
RSS feed
 
New topic
replay challenge