Why server variable "http_referer" is empty first time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AnuSumesh
    New Member
    • Aug 2007
    • 96

    Why server variable "http_referer" is empty first time?

    Hi,

    I have created two web pages say first.asp and second.asp.
    first.asp has a link of second.asp and username is embedded in url of second.asp.(second.asp?user name=dvhsdghsdg)

    Second.asp has a link for some https site say securelogin.asp and i want to access the server variable "referer Url" to retrieve username in https login page.

    The issue is : When first time i access securelogin.asp from second.asp, referer url is empty. But when second time from same Second.asp page, its giving me proper referer url as as
    "second.asp?use rname=dvhsdghsd g."

    Both first.asp and second.asp are http and securelogin.asp is https.
    Can this be the reason? If so then how can I get the referer url on first time access?
    Please help me in this issue.

    Regards,
    anu
  • AnuSumesh
    New Member
    • Aug 2007
    • 96

    #2
    One more point..... I tried same in firefox and its working fine means I am able to retreive http_referer on first time access in mozilla but not in IE.

    Anu

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Which version of IE are you working on? Are you using any cookies?

      Comment

      • AnuSumesh
        New Member
        • Aug 2007
        • 96

        #4
        IE7.0 and cookies are enabled for https site.

        Comment

        Working...