• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting referer

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am wondering if there is a way to set the referer programatically. I know how to see the value using document.referer
Thanks in advance.
SK
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by set it??
Eric
 
Sam Kumar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Whenever customer access our web site from third party we recieve the referer in HTTP header but unfortunately the way out site function is that "entry" page loads twice and hence we lose the "referer" information and its very difficult to know where customer went after the entry page. Here is the flow:
- Let say customer access our site from yahoo.com
- It hit the home page and HTTP header contains referer as "yahoo.com"
- Now "home page" is entry page, before displaying the home page content, we send some javascript to capture browser information (using third party software BrowserHawk) and browser itself calls entry page using "location.replace". Now with this secound request, we lost the referer to this site.
Now in this case, I was wondering if I can either set the referer or preserve the referer from origonal request which is for site trafic analysis purpose. One way is to set it as a parameter but that may not be very effective compare to setting referer in HTTP header.
Thanks in advance.
SK
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will look into this, I am currently developing an ASP-based web stat program for fun, been working on it for a week or so.
right now I am woring on the basics of it...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic