#19054 [Opn->Bgs]: Redirect -- header(Location

From: Date: Thu, 22 Aug 2002 16:59:47 +0000
Subject: #19054 [Opn->Bgs]: Redirect -- header(Location
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17577@lists.php.net to get a copy of this message
ID: 19054 Updated by: cynic@php.net Reported By: shelley@databyte.com -Status: Open +Status: Bogus Bug Type: Program Execution Operating System: W2k Server PHP Version: 4.2.1 New Comment: 1) don't create a new PR when there's one describing your problem already. add comments to the other PR isntead. 2) the argument to your header() call is broken. read the relevant RFC. Previous Comments: ------------------------------------------------------------------------ [2002-08-22 12:53:45] shelley@databyte.com I read bug #16111 and have changed my security setting on IIS and it makes no difference. I'm also using Zend, Smarty & ADODB. In addition I'm running on a pentium 4. I am having major problems in our login program and took the code out into a seperate test problem, and am still having the same redirect problems. I have been checking the Forums in the PHP community for the last week and find this seems to be a problem. I've tested the following code and it only will re-direct 1 time out of 5 or 6 times, of executing the code(with no code changes). It gives an error message the other times. Here is my test program: <? include_once("config.inc"); include_once("conn.inc"); session_start(); $sess_key=session_id(); $access = 'grant'; $page_name='page1.php'; $login='shelley'; $HTTP_SESSION_VARS['saccess'] = $access; $HTTP_SESSION_VARS['susername'] = 'Shelley Jones'; $HTTP_SESSION_VARS['suserid'] = $login; $HTTP_SESSION_VARS['suseris'] = 'Cust'; $HTTP_SESSION_VARS['spage'] = $page_name; header("Location:page2.php?K=".$sess_key."&L=".$login); flush(); exit; ?> Shelley ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19054&edit=1

« previous php.bugs (#17577) next »