From: [EMAIL PROTECTED]
Operating system: Windows 98SE
PHP version: 4.2.1
PHP Bug Type: HTTP related
Bug description: header() vs. session_register()
I want to make the use of session in PHP (4.2.1) so I try this code...
session_start();
$_SESSION['user'] = 'myname';
$_SESSION['password'] = 'mypassword';
which is similar to the following...
$user = 'myname';
$password = 'mypassword';
session_start();
session_register('user');
session_register('password');
The problem comes when I add header() function so that the script
become...
session_start();
$_SESSION['user'] = 'myname';
$_SESSION['password'] = 'mypassword';
header('Location: http://www.mysite.info/member/index.php');
When I try this (on IE 5.5, Windows 98SE; Apache 1.3.26), it didn't take
me to the page I specified above. It led to an error message "The
requested URL could not be retrieved".
I don't meet any solution of that so I think it's a bug. Can anyone help
me explaining what's going on?
--
Edit bug report at http://bugs.php.net/?id=19991&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19991&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19991&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19991&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19991&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19991&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19991&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19991&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19991&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19991&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19991&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19991&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19991&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19991&r=isapi