PDA

View Full Version : Hiding URL info


florida
01-11-2006, 10:18 PM
I have a link where I was wondering how I can hide the ProjectID and LocationID on the reportPage.cfm URL.
After the link takes me to the reportPage.cfm it shows the ProjectID and LocationID in that page URL.
I dont want that info to show up in the URL.
Please advise how I can do that with a link such as what I have below?


<a href="http://dsnLocation/reportPage.cfm?projectID=#projectID#&locationID=#locationID#">Link</a>

Is there something in a javascript form post onclick where I can hide the link parameters so the reportPage.cfm will not show them in the URL?

Spudhead
01-12-2006, 11:38 AM
You'll need to send your parameters to reportPage.cfm as fields in a hidden form, with its method set to "POST".

Beagle
01-13-2006, 07:50 PM
While you asked for a technical solution to a specific problem, I can't help but ask, why do you want to do this? Is it a security problem for users to see the project ID and location ID? If it is, then moving them to hidden fields won't help you at all. Users are crafty, and there's all sorts of things then can do if you're not extra careful.

If your goal is to prevent people from being able to change the numbers around and get unauthorized access to data, then you need to be doing more on the server side, whether that means using sessions to keep encryption keys to encrypt and decrypt your query strings (a questionable security enhancement), or by using code to ensure that only authorized individuals are able to view certain data.

So why do you want to do this? You may be asking the wrong question.

florida
01-25-2006, 01:59 PM
Thanks Beagle,

I will do more Server side work or try another option because I do want to hide the numbers.