$_SERVER['HTTP_REFERER'];

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
baby_1
Forum Newbie
Posts: 2
Joined: Mon Apr 13, 2009 11:49 pm

$_SERVER['HTTP_REFERER'];

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: $_SERVER['HTTP_REFERER'];

Post by requinix »

The referrer won't be sent when going from non-secure to secure. That happens by design.
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Re: $_SERVER['HTTP_REFERER'];

Post 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.
baby_1
Forum Newbie
Posts: 2
Joined: Mon Apr 13, 2009 11:49 pm

Re: $_SERVER['HTTP_REFERER'];

Post by baby_1 »

Thanks a lot for your helpful information
Post Reply