php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16644 Why don't write $_SESSION and $HTTP_SESSION_VAR
Submitted: 2002-04-16 17:01 UTC Modified: 2002-04-17 00:40 UTC
From: mylinux at tiscalinet dot it Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.2 OS: Win98 SE
Private report: No CVE-ID: None
 [2002-04-16 17:01 UTC] mylinux at tiscalinet dot it
I find this workaround for PHP 4.1.2 for PWS on WIN98 to avoid problems

in Session management with register_globals = Off



Set in Php.ini file set session.auto_start = 0 



For each file.Php add at the begin (1,2 line apfter <?Php )



Session_Start();

$HTTP_SESSION_VARS[FreeVar]=FreeValue;



The Session_Start(); must be 'write' manually to avoid that PHP create more than
1 file for Session (with session.auto_start create one file each time I open PHP file)
and $HTTP_SESSION_VARS[FreeVar]=freevalue to enable php to save $_SESSION[] value on file



I don't know why nut it work 


:) Vidde

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-17 00:39 UTC] sniper@php.net
This bug has already been fixed in the latest released version of
PHP, which you can download at http://www.php.net/downloads.php
 [2002-04-17 00:40 UTC] sniper@php.net
(meant that it's fixed in 4.2.0 RC4)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC