php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20170 PHP session don't save variables data on Windows.
Submitted: 2002-10-30 07:53 UTC Modified: 2002-11-01 17:13 UTC
From: j2000000 at yahoo dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0-pre2 OS: Windows XP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j2000000 at yahoo dot com
New email:
PHP Version: OS:

 

 [2002-10-30 07:53 UTC] j2000000 at yahoo dot com
PHP session don't save variables data on Windows.

This is a bug described long ago and registered in PHP.net forum.

Does anyone knows how to make a PHP 4.2.x ou 4.3.x session work as it should be.
I am using Windows XP + Apache 1.3.26 + PHP 4.3.0-pre2.

Thanks in advance.

Best regards,

Josue

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 08:08 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-10-30 08:55 UTC] j2000000 at yahoo dot com
1. What I did:

---file1.php---
<?php
session_start();
session_register('stack');
$stack[]='word1';
header('Location: file2.php');
?>

---file2.php---
<?php
session_start();
$stack[]='word2';
print_r($stack);
?>

2. What I expected to have happen:
---output---
Array ( [0] => word1 [1] => word2 )

3. What actually have happened:
---output---
Array ( [0] => word2 )
 [2002-10-30 19:00 UTC] sniper@php.net
RTFM:

http://www.php.net/manual/en/ref.session.php


"If register_globals is disabled, only members of the global 
associative array $_SESSION can be registered as session
variables. The restored session variables will only be 
available in the array $_SESSION. "

 [2002-11-01 17:13 UTC] j2000000 at yahoo dot com
You are right. Thanks!

But, I still got no session functionality unless I pass the session id along GET or POST data to other pages. The cookies are been accepted, so I don't have a clue of why this is happenning. Any idea?

Best regards,

Josue
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 14:01:29 2024 UTC