GoodMorningSky
Junior Member
122 Posts |
Posted - 03 March 2005 : 18:22:41
|
I want to send authentication info when redirecting to one page to the other page . Those pages are running on different Application. Both application are Cookie less. I don't want to pass via Query string, since user shouldn't see it.
So, I decided to pass via HTTP HEADER.
FROM WebApp1/Page1.aspx.
private void bt_Click(object sender, System.EventArgs e) { Response.AppendHeader("SkyHeader", "Sky header contents"); Response.Redirect("http://localhost/WebApp2/Page2.aspx"); }
AND FROM WebApp2/Page2.aspx private void Page_Load(object sender, System.EventArgs e) { string myHeaderInfo = Request.Headers["SkyHeader"]; }
BUT, the problem is myHeaderInfo always null. There is no header named "SkyHeader".
I think this is common issue regardless it's .NET or ASP.. WHAT is problem?? How can I send the info??? Any comment will help!! Thank you. |
Software Engineer. MCSD.NET, SCWCD |
|