php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19054 Redirect -- header(Location
Submitted: 2002-08-22 12:53 UTC Modified: 2002-08-22 12:59 UTC
From: shelley at databyte dot com Assigned:
Status: Not a bug Package: Program Execution
PHP Version: 4.2.1 OS: W2k Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: shelley at databyte dot com
New email:
PHP Version: OS:

 

 [2002-08-22 12:53 UTC] shelley at databyte dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-22 12:59 UTC] cynic@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 08:01:28 2024 UTC