c# - Hide a QueryString parameters, how? -
i have url: one: http://www.example/about/49.
want seen http://www.example/about/, must have parameters passed querystring parameters.
is possible ?
be careful session variables; it's easy have multiple pages opened using same session , end mixing values.
it better use tempdata, allows value used once (removed on first access). however, implies value used immediately.
you can write cookie desired value, intercept request (asp.net provides variety of ways of doing this, such beginrequest event), , internally process url though contained value.
of course, must cleanup cookie (which have same problem session-based solution). remember cookie more vulnerable tampering on client.
personally, think of these approaches far more trouble worth. "hackable urls" (such contain potentially meaningful id) good thing.
Comments
Post a Comment