Re: redirection question



..oO(bob.chatman@xxxxxxxxx)

Heres an all purposes function. You will run into an issue with
headers if you use any printing before you send the header information
(same with cookies and the session too), this function will send the
request as a JS redirect if the headers have already been sent.

How ugly. The "headers already sent" problem can easily be solved
without using unreliable client-side scripting, either be thinking over
the structure of the code or by using output buffering.

Additionally a Location header requires an absolute URL.

Micha
.



Relevant Pages

  • Re: Cookie not conserved across jump
    ... just leads to another HTTP request. ... If you also allow the session ID to ... A browser just sends the cookies it received before (let aside JS- ... You can check with Firefox' Live HTTP Headers (or HTTP ...
    (comp.lang.php)
  • Re: Is there a way to obtain a Session object other than the current one ?
    ... request will be available to the server side code in the other sessions. ... > headers of the current request, so I can not make my new request contain ... > retrieve the session. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: rotate image daily
    ... I did a similar thing recently with rotating headers. ... They might not have cookies enabled of course, ... session method as a backup. ...
    (alt.php)
  • Re: Problems returning/attaching cookies
    ... that I should find the cookies there which are being sent back. ... > to the header portion of the this request. ... > before sending out the 2nd request, it seems to have empty headers -- ... > # tried using several configurations of the default cookie policy ...
    (comp.lang.python)
  • [FAQ] FAQ Thread (Rev 1)
    ... fix it and then post it. ... Then, if you are coding in PHP 5, pass the context to ... Referer headers, for example, while others can be configured ... store the session id in the ...
    (comp.lang.php)