php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33106 Session handling problem
Submitted: 2005-05-23 07:38 UTC Modified: 2005-05-23 10:24 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: eswar at cgvakindia dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.0.4 OS: windows 2003
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: eswar at cgvakindia dot com
New email:
PHP Version: OS:

 

 [2005-05-23 07:38 UTC] eswar at cgvakindia dot com
Description:
------------
Dear Sir

I changed in php.ini file the auto start for session =1.
I also tried by settin auto start=0;
I set the session.save_path=c:\\temp;
I also created the folder in windows.
I am using IIS and windows 2003.
Nothing else i had made change.

Problem is:

I created a two files. One file which is used to write the session and where another file I used to read the session.
But i cann't able to read the data in the another file. 
I identified the bug as. When I write my file in session path it creating one session_id with file name and it stores the data. When i am moving to the next page, i observed that one more session file is created with empty content. So when I try to read the conten in the second page i am not able to read the stored session data. It is saying not defined. I understood that the second page is reading the session data from that empty file. How to short out this problem. Please help me. It is very urgent.


Reproduce code:
---------------
/*Session is started in server and i also tried by using session_start() and session_register()
(/
1.Write.php
<?

$_SESSION['test']="foo";

echo $_SESSION['test'];

?>
<a href="read.php">read</a>

2.Read.php

<?
echo $_SESSION['test'];
?>

error: Undefined variable test




Expected result:
----------------
I want the o/p as "foo" in read.php the echo to print that. But i getting a error message. I tried all the option i don't please help me in this situation.


Actual result:
--------------
Waring:Undefined variable in read.php 'test'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-23 07:42 UTC] eswar at cgvakindia dot com
It works fine in server machine.But it produces error during the remote host or remote terminals.
 [2005-05-23 10:24 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 01:00:03 2025 UTC