note 47036 deleted from function.header by tularis

From: Date: Sun, 31 Oct 2004 22:12:22 +0000
Subject: note 47036 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79417@lists.php.net to get a copy of this message
Note Submitter: BatmanG8 at go dot com ---- > marcelo at redcetus dot com at 2004-10-15 05:01 wrote: > Redirect the POST like this: > header("HTTP/1.0 307 Temporary redirect"); > header("Location: > https://myserver.redcetus.com/otherlocation"); But that seems to cause a long pause followed by a blank page. On checking, I found that the temporary redirect code for 1.0 was 302 and for 1.1 it was 307, but those made no difference. Others suggested the following sequence session_write_close(); header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "/" . "nextpage.php"); exit; [or exit();] but in either case, the $_SESSION variables set just prior to this are still getting lost.

« previous php.notes (#79417) next »