• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

URL Parameters

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
sk mehrotra
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic