Question

I am working for a project which has web garden scenario and cannot keep any data in session/inmemory. The asp.net page opens from Appian(bpm tool) and we pass id through query string. Now, client is asking me to hide the query string parameter after reading it. But, in that case say, landing page is http://a.aspx?id='123' and after reading that value we have to redirect to b.aspx without exposing the id(query string). Please suggest me a suitable way to achieve this. I am not really getting any idea for this.

No correct solution

OTHER TIPS

you can add key/value pairs to the header, it won't be visible in the querystring.

HttpContext.Current.Response.Headers.Add( key, value);

and

string headerVal = HttpContext.Current.Request.Headers[key];

You can use session variables on the server side or http Post instead of GET.

Session["id"] = id;

And on load of b retrieve it.

To use Post you can use a hidden field and a form.

//You can set it like this
<form name='IdForm' action='b.aspx' method='post'>>
<asp:HiddenField id="WhateverId" runat="server" value='<%= Request.QueryString["whateverID"] %>' />
</form>

On redirect use javascript to post

function Redirect() {
     document.forms["IdForm"].submit();
}

You must use this js script wherever the redirection happens.

And finally on b.aspx code behind

HttpContext.Current.Request.Form["WhateverId"]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top