Re: PHP header command crashes IE6x/PC
| From: | Cesar Cordovez | Date: | Fri, 12 Dec 2003 16:49:21 +0000 |
| Subject: | Re: PHP header command crashes IE6x/PC | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172584@lists.php.net to get a copy of this message | ||
Somebody, IIRC, told the list that the argument for header("Location... has to be a complete url, not just a directory, ie:
header("Location: http://www.alenet.com/");
exit();
HTH
Cesar
Matt MacLeod wrote:
John, Have tried this but unfortunately had no effect. Everything appears to fine if the session variable does not exist ie: the user is redirected to the log in page. It's just when the user has logged in and the session is set that IE throws it's toys out of the pram. Cheers, Matt On Friday, December 12, 2003, at 03:15 PM, CPT John W. Holmes wrote:From: "Matt MacLeod" <matt@bigbarn.co.uk>if (!ISSET($_SESSION['loggedin'])) { header("Location: /admin/login/");put exit(); after your header redirect and use a full URL for your location. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php