Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Champs!

Story: .... I have a search dialog form collects search param and calls master page to display information based on query string... Works well by passing values by querystring.

just wondering "what if" user tampers or plays with url parameters... page gives access to other info. in that case. example

http://localhost/octopus/shipmentinfo.aspx?actno=WJgtAbTGa3P%2bUBkYmJrHpA%3d%3d&doctype=OEX&brid=1018&jc=0&po=0&wb=0&inv=0

I'm thinking of writing these param or url string in database and get recId of it and send encrypted recID by query-string....! which looks like
http://www.gesksa.com/octopus/shipmentinfo.aspx?recID=WjgtAbTGa3P%

and in page_load master page - get recID deCrypt it and get URL from stored database... for secure take-off and landing....

IS THIS FARE IDEA OR EFFECTS THE PERFORMANCE...

Please I need expert suggestion.....
Thanks,
Posted

1 solution

Query string is one way is one way to pass data to a another page.[^]. you can try something like Session to pass data and it will not visible to user.
But any case you better to have validation for input data. for example check whether current logged in user has access to requested data or not and then display only if validation pass.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900