#19054 [NEW]: Redirect -- header(Location

From: Date: Thu, 22 Aug 2002 16:53:46 +0000
Subject: #19054 [NEW]: Redirect -- header(Location
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17574@lists.php.net to get a copy of this message
From: shelley@databyte.com Operating system: W2k Server PHP version: 4.2.1 PHP Bug Type: Program Execution Bug description: Redirect -- header(Location 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 bug report at http://bugs.php.net/?id=19054&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19054&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19054&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19054&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19054&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19054&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19054&r=support Expected behavior: http://bugs.php.net/fix.php?id=19054&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19054&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19054&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19054&r=globals

« previous php.bugs (#17574) next »