php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16435 follow up bug 16043, $_SESSION can't use in PHP 4.1.2, PHP 4.2.0RC1
Submitted: 2002-04-04 15:03 UTC Modified: 2002-04-05 03:25 UTC
From: leef at sdc-moses dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.2 OS: Windows 2000/XP
Private report: No CVE-ID: None
 [2002-04-04 15:03 UTC] leef at sdc-moses dot com
I seem to have configuration problems....i just can't seem to get
session variables written to in files under win2000, NTFS w/ Apache
1.3.23 and
PHP 4.1.2 ......i've already done everything from session_start() on
every page
to making var global....anybody can help??  thanks....btw, i got the
same system on a Linux box running apache and php and it works fine....

sample of my code:

<?
   session_start();

   global $user_id;

   if (!isset($_SESSION['user_id'])) {
      $_SESSION['user_id'] = "someone";
      print false;
   }
   else {
      print $_SESSION['user_id'];
      print true;
   }
?>

Apparently under the bug report database for bug number 16043, my
exactly problem was described.  According to the PHP team, this
windows/apache1.3.23/php4.1.2 session not writing to file bug has been
fixed in the 4.2.0RC1 binaries.  I've patched my php4apache.dll with the
ones from 4.2.0RC1 AND it still doesn't work!!!  Anyone who used
4.2.0RC1 came across this problem and made it work?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-04 19:29 UTC] sniper@php.net
At http://www.php.net/~derick/ you can find RC2 so please test with that.

Did you replace the php4ts.dll also?

--Jani

 [2002-04-04 19:39 UTC] leef at sdc-moses dot com
ahhhhhh....the one minor detail that i forgot.....thanks :)  after php4ts.dll was copied over the old one in winnt/system32, my session worked like a charm.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 08:01:33 2024 UTC