• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2265
  • Last Modified:

URL Referrer is NULL in IE6 and IE7

Problem:  Request.UrlReferrer property no longer contains page name.  We had a reliable website for over a year, up until about 6 months ago, using IE6 browser, where Request.UrlReferrer contained the web page name from where the call was made to current page.  No changes were made to our programs, so implication would be that some patch to IE6 or other change outside of our web app caused the UrlReferrer property to no longer contain the needed value when the new page is opened.  Found the following suggested fix on the internet:  It happen too on symantec client firewall. All we need to do is add the website in the trusted zone/permit all state to allow full access. I have tried the same and it worked.

We have added website in trusted zone.  No success.  What Microsoft patches or updates could have caused the property to suddenly loose, or have its value stripped away?  What other things could have a similar impact?

The code that is used to retrieve the value from the UrlReferrer property of the Request object is:
 
Dim sFromPage As String
sFromPage = Request.UrlReferrer.AbsolutePath
Then, if the value of sFromPage is not a blank string, the link is displayed. 
 
Request is invoked via a hyperlink; we are NOT using client-side scripting.
 
 
Page Source Code Includes Javascript:
 
<script type="text/javascript"> 
<!--
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
// -->
</script>

Open in new window

0
jml12906
Asked:
jml12906
  • 3
  • 2
3 Solutions
 
oobaylyCommented:
Is it only ie6 that has this issue? How does it work with Chrome or Firefox?
0
 
jml12906Author Commented:
It is IE6 and IE7, ironically IE8 works fine as does Firefox.
0
 
oobaylyCommented:
I can't reproduce this issue. I've just tried IE6 (6.0.2900.5512.xpsp_sp3_gdr.080814-1236) and used Wireshark to analyse the network traffic. It was sending the referer header as expected.

What is interesting is that the code you have given would fall over if Request.UrlReferrer is null. Do you get a NullReferenceException, or is it specified but empty? (I don't think the latter is possible though)
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
jml12906Author Commented:
My developer is going to try and see if she gets a nullreferenceexception. I appreciate the help
0
 
Tony McCreathTechnical SEO ConsultantCommented:
Some people install plugins to block sending data like referrer for privacy reasons. Firewalls may do the same.

You should never assume that its provided.

Typing in a url into the browser ends up with no referrer as well.
0
 
oobaylyCommented:
Can you you post the solution as it will be of use for future EE users if they come across a similar problem to this?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now