php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13229 sess vars doesn't saved when value assigned to $HTTP_SESSION_VARS (reg_glob=on)
Submitted: 2001-09-10 08:43 UTC Modified: 2001-11-24 19:53 UTC
From: vovik at tut dot by Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Win98SE
Private report: No CVE-ID: None
 [2001-09-10 08:43 UTC] vovik at tut dot by
Session vars doesn't saved when register_globals=on and value assigned to $HTTP_SESSION_VARS["varname"], but saved when value assigned to $varname.

But I need universal way, that works not depending of register_globals.

Accordingly to documentation first way must work with register_globals=on

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-24 19:53 UTC] sniper@php.net
This is fixed in CVS. Try latest CVS snapshot from: 
http://snaps.php.net

Fix will be in PHP 4.2.0

 [2002-01-14 14:21 UTC] growlies at hotmail dot com
i am having the some problems with this;

@session_start();
session_register("user" , "userlevel");
$HTTP_SESSION_VARS["user"] = $HTTP_POST_VARS["user"];
$HTTP_SESSION_VARS["userlevel"] = $userlevel;
session_write_close();
header("Location: admin.php?".SID);

i put this at the start...

ini_set("register_globals", "0"); 

i now have the session registerd 80% of the time.. when i get to admin.php the variables are there. i hit refresh and they usually carry through, but sometimes they don't. i refresh again and they sometimes reappear too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 19:01:33 2024 UTC