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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 19:01:33 2024 UTC