Server Variables And Persistancy

Discussion in 'C#' started by rayqsl, Apr 1, 2009.

  1. #1
    Hi everyone,

    I need to produce a report that shows the search words that were used to find the web page (from Google or Yahoo or wherever).

    First, am I correct in saying that this information is held in the HTTP_REFERER variable? From the documentation that I've seen, it looks like the words appear after the ? that follows the URL.

    Second, does the content of this persist to the next page? For example, suppose HTTP_REFERER contains "www.mydomain.com?q=beer" when the first page of the website is started. The search word used was beer. If I then click onto another page in the website, does the ?q=beer get passed on or does it get lost? I think that it gets lost.

    Thanks
     
    rayqsl, Apr 1, 2009 IP