ID:               20136
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: Windows 2000 Pro
 PHP Version:      4.2.3
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Don't use session_register to register session variables, instead do
$_SESSION['variable'] = 'value'; or $HTTP_SESSION_VARS['variable'] =
'value';

It would also be a very good idea to try the latest CVS snapshot, it
contains many fixes to the session code, which were added since the
4.2.3 release.


Previous Comments:
------------------------------------------------------------------------

[2002-10-28 10:13:58] [EMAIL PROTECTED]

I'm using PHP running on Win2k using IIS and apache 1.3.x on separate
machines.

The basic problem is that when you start a session using
session_start() and register some variables using session_register(),
you lose the session "link" when you jump to the other scripts/pages. 

If you check what PHP does, everything seems normal at first: it
creates the session file and the vars are in there, with values and
all.

The problem lies when you jump to the next page/script. Trying to get
values using $_SESSION or $HTTP_SESSION_VARS produces no results. The
values are still in the session file, but you can't get at them.

I don't think its my php.ini config that's causing this.
Register_globals is on. And I've gone back to version 4.1.2 because
sessions work on that, so I can't supply any config info.

Really sorry if this is a waste of your time in case you follow up on
this and produces no results but I think there is a real problem here.
I didn't find this in the advanced bug search either so I decided to
post it here. There's also a lot of people stumbling about in the
newsgroup this month wondering what's happening to their sessions.

Anyway, hope this helps.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20136&edit=1

Reply via email to