Re: [PHP] session header issue

This is a discussion on Re: [PHP] session header issue within the PHP General forums, part of the PHP Programming Forums category; I usually included a global variable prefixed to the page, like such.. header("Location: $ssl_server/mypage.php"); or ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2003
John Manko
 
Posts: n/a
Default Re: [PHP] session header issue

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/
>
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0