php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16734 Session is not setting state
Submitted: 2002-04-22 13:33 UTC Modified: 2002-04-22 14:45 UTC
From: michael at egplant dot ws Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.2 OS: Windows 2000
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: michael at egplant dot ws
New email:
PHP Version: OS:

 

 [2002-04-22 13:33 UTC] michael at egplant dot ws
When running the following script with register_globals off or on, i get proper results (the counter increments) under my production server (freebsd 4.5, php 4.1.2).  Under my devoplement box (Win 2k), I get nothing:

<?php

session_start();
  
if (!isset($_SESSION['count'])) {
    $_SESSION['count'] = 0;
} else {
    $_SESSION['count']++;
} 
  
echo $_SESSION['count'];
  
?>

Under win2k the session file is created in the proper directory, but is not populated with the registered variables.  The cookie is set on the client side.  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-22 14:45 UTC] sniper@php.net
This should be fixed in 4.2.0. (to be released today)
Remember to replace ALL php4ts.dll files in your 
system with the one found in the release package.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 00:01:32 2025 UTC