note 13161 rejected from function.header by jimw

From: Date: Wed, 31 Oct 2001 22:03:15 +0000
Subject: note 13161 rejected from function.header by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19783@lists.php.net to get a copy of this message
I'm trying to use something like what I have below, without any luck. Basically I am checking for some session information to be intact, and if not, I'd like to redirect to the begining page "/index.php" of the site they requested initially. I have "a.company.com" and "b.company.com" which might and should have different entries, databases to auth against, etc. However my header ("Location..") won't take any kind of variable statement, can someone offer a suggestion? Thanks John $ref_array = explode("/",$HTTP_REFERER); $site = $ref_array[2]; header ("Location: http://".$site."/");

« previous php.notes (#19783) next »