php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16043 $_SESSION can't use in PHP 4.1.2
Submitted: 2002-03-13 10:40 UTC Modified: 2002-03-21 19:51 UTC
Votes:6
Avg. Score:4.5 ± 0.8
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:0 (0.0%)
From: tokimeki at pchome dot com dot tw Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.2 OS: Windows XP
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tokimeki at pchome dot com dot tw
New email:
PHP Version: OS:

 

 [2002-03-13 10:40 UTC] tokimeki at pchome dot com dot tw
as title,
the global var. array $_SESSION can't use in PHP 4.1.2
(4.1.1/4.1.0 are OK)
P.S. I install PHP in Apache 1.3.23 modules

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-14 10:27 UTC] tokimeki at pchome dot com dot tw
thank you for reply...
I test the $_SESSION use those 3 PHP file...

1.php
===============================
<?php
session_start();
echo '<a href=2.php>TEST</a>';
echo '<hr>SESSION<br>';
foreach($_SESSION as $k => $v)
	echo "$k => $v<br>";
$_SESSION['a']='a';
?>
===============================
2.php
===============================
<?php
session_start();
echo '<a href=3.php>TEST</a>';
echo '<hr>SESSION<br>';
foreach($_SESSION as $k => $v)
	echo "$k => $v<br>";
$_SESSION['b']='b';
?>
===============================
3.php
===============================
<?php
session_start();
echo '<a href=1.php>TEST</a>';
echo '<hr>SESSION<br>';
foreach($_SESSION as $k => $v)
	echo "$k => $v<br>";
$_SESSION['c']='c';
?>
===============================
very simple...
I like use PHP 4.1.x new features($_GET, $_POST, $_SESSION... etc), so I care about the $_SESSION can right work!
 [2002-03-14 21:15 UTC] yohgaki@php.net
Oops,  this is fixed in CVS and will be fixed in 4.2.0 also.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 08:02:42 2024 UTC