From: [EMAIL PROTECTED] Operating system: Windows 2000 Pro PHP version: 4.2.3 PHP Bug Type: Session related Bug description: Sessions don't work across scripts
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 bug report at http://bugs.php.net/?id=20136&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20136&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20136&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20136&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20136&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20136&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20136&r=support Expected behavior: http://bugs.php.net/fix.php?id=20136&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20136&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20136&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20136&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20136&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20136&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20136&r=isapi