D
Drebin
I am retrofitting a central login application and want to be able to read
the Request.ServerVariables["HTTP_REFERER"] so that when they have logged
on, I can send them back to wherever they were trying to go..
If you try to load a legacy ASP app, I do this:
If Len(SessionID) <> 40 Then
Response.Redirect "/WAS/Default.aspx?AppCode=2400"
End If
On Default.aspx, I go so far as do this:
foreach (string s in Request.ServerVariables.AllKeys)
{
Response.Write(s + "=[" + Request.ServerVariables + "]<br>");
}
HTTP_REFERER is blank. If I had a <a href="Default.aspx">click</a> on that
same page, then referer fills in. Why can I not see the HTTP_REFERER in this
scenario??
Also, I tried instead of the Response.Redirect, doing something like:
<script>
window.location.href='/WAS/Default.asp?AppCode=2400';
</script>
Just in case Response.Redirect sends some wacky header that is throwing off
ASP.NET??
I'm really jammed up and running WAY behind - any insight greatly
appreciated, thanks!!
the Request.ServerVariables["HTTP_REFERER"] so that when they have logged
on, I can send them back to wherever they were trying to go..
If you try to load a legacy ASP app, I do this:
If Len(SessionID) <> 40 Then
Response.Redirect "/WAS/Default.aspx?AppCode=2400"
End If
On Default.aspx, I go so far as do this:
foreach (string s in Request.ServerVariables.AllKeys)
{
Response.Write(s + "=[" + Request.ServerVariables
}
HTTP_REFERER is blank. If I had a <a href="Default.aspx">click</a> on that
same page, then referer fills in. Why can I not see the HTTP_REFERER in this
scenario??
Also, I tried instead of the Response.Redirect, doing something like:
<script>
window.location.href='/WAS/Default.asp?AppCode=2400';
</script>
Just in case Response.Redirect sends some wacky header that is throwing off
ASP.NET??
I'm really jammed up and running WAY behind - any insight greatly
appreciated, thanks!!