Page 1 of 1

$_SERVER['HTTP_REFERER'];

Posted: Tue May 19, 2009 3:53 pm
by baby_1
hello
i wrote a program that should transfer some data itself and bank
when bank finish the action it should go to the my site... but the $_SERVER['HTTP_REFERER']; didn't work ( it doens't show the last web site(bank site link))(it is empty or dosen't set)

but for other site it works so good but for some sites that uses SSL protocol it doens't work!!!
what should i do?

is it diffrent for SSL sites? why $_SERVER['HTTP_REFERER']; works for some sites with SSL? but it doesn't work for me? is it possible to adjuest some settings in my web site?

Re: $_SERVER['HTTP_REFERER'];

Posted: Tue May 19, 2009 4:17 pm
by requinix
The referrer won't be sent when going from non-secure to secure. That happens by design.

Re: $_SERVER['HTTP_REFERER'];

Posted: Tue May 19, 2009 5:15 pm
by Zoxive
The referer header is set by the users browser which can be manipulated or changed, and sometimes disabled. So don't count on it always being there.

Re: $_SERVER['HTTP_REFERER'];

Posted: Tue May 19, 2009 11:52 pm
by baby_1
Thanks a lot for your helpful information