Connecting Tech Pros Worldwide Help | Site Map

Why server variable "http_referer" is empty first time?

AnuSumesh's Avatar
Member
 
Join Date: Aug 2007
Posts: 96
#1: Feb 17 '09
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?username=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?username=dvhsdghsdg."

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's Avatar
Member
 
Join Date: Aug 2007
Posts: 96
#2: Feb 17 '09

re: Why server variable "http_referer" is empty first time?


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
sashi's Avatar
Expert
 
Join Date: Jun 2006
Location: Seremban, Malaysia
Posts: 1,630
#3: Feb 17 '09

re: Why server variable "http_referer" is empty first time?


Which version of IE are you working on? Are you using any cookies?
AnuSumesh's Avatar
Member
 
Join Date: Aug 2007
Posts: 96
#4: Feb 17 '09

re: Why server variable "http_referer" is empty first time?


IE7.0 and cookies are enabled for https site.
Reply


Similar ASP / Active Server Pages bytes