You are assuming the program will understand the querystring and will be
able to decrypt it and run the logic.
But if the key is in the session variable, then a new person, even with the
url, would not be able to run the program because the server would unable to
decrypt the info without the key in the session variable.
It does not matter if the user can/cannot understand the querystring. If
the server cannot understand the querystring at a later time, then the
problem is solved, no?
Would this work?
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:OlC99zUUDHA.1556@TK2MSFTNGP10.phx.gbl...[color=blue]
> Here's the thing (thought I explained it earlier!) - The query string is
> used to pass information to the page that will enable or run some
> functionality in that page. Regardless of whether the user can understand
> the query string or not, all he/she needs to do is to paste the URL with[/color]
the[color=blue]
> query string into his/her browser, and voila! the page is run.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
>
http://www.takempis.com
> Big things are made up of
> lots of little things.
>
> "Tarren" <noemailplease> wrote in message
> news:eQU3hOUUDHA.3796@tk2msftngp13.phx.gbl...[color=green]
> > Could you do this?
> >
> > Encrypt the query string and store the private key as a session[/color][/color]
variable?[color=blue][color=green]
> > so copying the querystring from the url bar and pasting in a new session
> > would be useless since there would be no key to decrypt it and it would[/color]
> just[color=green]
> > read as garbage text?
> >
> > I am assuming here that the requirement is that this data must be in a[/color]
> query[color=green]
> > string. Could the above approach work? Anyone have experience with
> > something of that nature?
> >
> >
> >
> > "Onur Bozkurt" <onur.bozkurt@ßofthome.net> wrote in message
> > news:u12WaMTUDHA.3640@tk2msftngp13.phx.gbl...[color=darkred]
> > > I couldn't understand what exactly you wan't to say because of my poo
> > > english. You mean is it still unsecure.?
> > > Is there a way to do this in a more secure way...?
> > >
> > > Kevin Spencer wrote:
> > >
> > > > The real problem with this situation is that he wants to encrypt[/color][/color][/color]
data[color=blue][color=green]
> > and[color=darkred]
> > > > then put it into the Query String. If that data controls the[/color]
> > functionality[color=darkred]
> > > > of the page, it doesn't matter whether it's encrypted or not. The[/color][/color][/color]
URL[color=blue][color=green]
> > will[color=darkred]
> > > > still invoke the functionality in the page that the Query String[/color]
> > parameter[color=darkred]
> > > > specifies, regardless of the user's ability to understand it.
> > > >
> > > >
> > >[/color]
> >
> >[/color]
>
>[/color]