Re: session header issue

From: Date: Thu, 31 Jul 2003 15:24:45 +0000
Subject: Re: session header issue
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-157750@lists.php.net to get a copy of this message
I usually included a global variable prefixed to the page, like such.. header("Location: $ssl_server/mypage.php"); or header("Location: $server/mypage.php"); and a myserversetting.php setting these. Now, I can globally change the servers by editing one file. Chris Shiflett wrote:
--- Sam Folk-Williams <sfolkwilliams@mn.rr.com> wrote:
The Location: header requires a correctly formed URL
     
It works fine having Location: main.php
That doesn't justify it. This is no different than writing screwed up HTML tables that happen to appear as you want in the browser you're testing with. You never know when your broken code is going to cause problems somewhere, and you've no one to blame but yourself when they do. It's much better for everyone just to do things the right way. The Location header should be an absolute URL. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/


« previous php.general (#157750) next »