php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36227 Session vars are automatic created
Submitted: 2006-01-31 14:19 UTC Modified: 2006-02-08 01:00 UTC
From: rperezm at estudiantes dot uci dot cu Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.1.2 OS: Windows XP SP2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-01-31 14:19 UTC] rperezm at estudiantes dot uci dot cu
Description:
------------
Well, after all I don't know is this is a bug or not. Is just  a report or a problem I have with my PHP. The problem is that PHP store session vars automatically in a directory without any call or session work. I have PHP 5.1.2, Apache/2.0.55 (Win32) mod_ssl/2.0.49 OpenSSL/0.9.8a and Windows XP ServicePack 2 installed and configured. Few day ago I watch a strange behaviour in my PHP. The cause is that session vars stored by default in PHP install dir \ session_data are created withouth any call. This mean that I have not any browser open and I not working with PHP at this moment. I not know if the cause can be a bad Apache configuration or something like that.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-31 14:24 UTC] derick@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.

 [2006-01-31 16:44 UTC] reynierpm at gmail dot com
What extra information you ned for? php.ini and httpd.conf or what?
 [2006-01-31 16:59 UTC] rperezm at estudiantes dot uci dot cu
Before all my apology if I not understand how to publish a valid bug. The problem is next: few days ago I have PHP 5.1.2, Apache/2.0.55 (Win32) mod_ssl/2.0.49 OpenSSL/0.9.8a and Windows Server 2003 Enterprise Edition. In this PHP works fine. Now I need to migrate my PC to a Windows XP SP2. I install PHP following the same procedure that I follow to install in Windows 2003. 

Now programming a web site that need to use SSL and I configure Apache to support it. In php.ini I not change anything, only uncommented some extensions needed: php_gd.dll, php_mysqli.dll (not include in PECL PHP5.1.2) if not downloaded recently from MySQL site.

When I navigate with Firefox browser in site one session var is created. But surprise every time I call a page from the same browser and same tab a new empty session is created.

I was believe that my application is wrong. So I check some concept for session in PHP Manual, but not the error is not my app.

Well, after that I close my browser and stay some minutes in sessiondata folder and I see that every "x" seconds a new empty session var is created.

So if I not have a browser open and I not navigate in site why this?

This is my php.ini session config:
[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
serializer of PHP.
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 4
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
session.save_path= D:\Server\PHP\sessiondata    ; argument passed to save_handler

So, waiting for yours
 [2006-01-31 17:18 UTC] bjori@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.


Check your access log
 [2006-02-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2007-09-19 18:07 UTC] tonny_akande at yahoo dot com
Please help me. I tried to uninstall PHP 4 and manually installed PHP 5 on my windows XP with IIS running as a web server.

After runing phpinfo() and it worked perfectly well. I tried to run my various php application I kept getting this erro below

Warning: session_start() [function.session-start]: open(/tmp\sess_580isdkbcpscrqg4f0fjsu70s4, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\oceanichmo\admin\main.php on line 2

I have createted a folder with this path C:\PHP\sessionFolder and edited php.in file to have session.save_path ="C:\PHP\sessionFolder"

The error message keep coming. Please help.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Feb 23 06:01:28 2024 UTC