php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8014 session storing problem
Submitted: 2000-11-28 13:16 UTC Modified: 2000-12-30 19:39 UTC
From: awe at email dot cz Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: win2k
Private report: No CVE-ID: None
 [2000-11-28 13:16 UTC] awe at email dot cz
Hi,
I have two scripts, one
--
session_start ();
session_register("user_id");
$HTTP_SESSION_VARS["user_id"]=456;
---
and second, which is linked from first
---
session_start ();
if (session_is_registered("user_id")) {
 echo $HTTP_SESSION_VARS["user_id"];
}
---
and echo gives error Undefined index. On linux
the same thing work ok.

Martin Nedbal

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-28 16:45 UTC] sniper@php.net
reclassified
 [2000-12-02 08:55 UTC] sas@php.net
Are there any error messages beside that? Does the session file get created? Do you have cookies enabled, and if not, do you provide the session id to the second script?

We cannot help you with so litte information. Sorry.
 [2000-12-30 19:39 UTC] sniper@php.net
No feedback. Try PHP 4.0.4 and reopen this bug report if problem still exists.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 20:01:31 2024 UTC