onClick event is clearing HTTP_REFERER variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cprice
    New Member
    • Aug 2009
    • 2

    onClick event is clearing HTTP_REFERER variable

    Hello.

    Issue:
    • When the page loads, we are dynamically adding an OnClick event to each link.
    • The onClick event calls a webservice.
    • Once the target of the link loads, the HTTP_REFERER field is blank.


    Notes:
    • We must use HTTP_REFERER. Finding a work-around is not an option.
    • This issue only applies to Internet Explorer. FireFox is not affected.
    • To access the website, we must be VPN'd into the network. The domain is not publicly available.
    • If we terminal services into the machine, and run the site from the server, this issue is not present.


    Thank you in advance!
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    as far as i'm aware browsers might fake or suppress the referer ... because it is a privacy issue ... from the php-doc you could see:

    Originally posted by php.doc
    'HTTP_REFERER'

    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
    so basicly you cannot rely on the HTTP_REFERER ... in case you could control the browser settings then you might have luck to configure the IEs to behave as you want it.

    kind regards

    Comment

    Working...