Red Swan
Red Swan

Reputation: 15553

Hide querystring parameters in asp.net

How to hide the query string parameter in address bar. i don't want to use View State or session or other state management technique. in my asp.net application. So how can i do this? encryption and decryption is one of but it takes time, and not trusted about its viseversa conversion. Also I tried Get and POST methods. but no impact. how to hide then querystring or its parameters.?

Upvotes: 3

Views: 2330

Answers (2)

Dan Iveson
Dan Iveson

Reputation: 936

POST should not append anything to the URL in the address bar.

How is the query string being generated. Is it from a form submission?

Upvotes: 2

Justin
Justin

Reputation: 86789

You can't reliably hide the querystring (unless you perform a redirect after every page, which is definitely not recommended).

If you are dead-set on using the query string then the only thing you can really do is obfuscate the query string - perhaps base 64 encoding the query string do the trick?

I have to ask however, what is it you are trying to solve? (Is this a security issue, or is there another motivation for wanting to hide the query string?).

Upvotes: 2

Related Questions