Mea culpa!! Even if my PHP is version 4.3.3, I had to compile it with '--enable-trans-sid' in the configure. Now it works.
Faulty PHP doc: PHP is capable of transforming links transparently. Unless you are using PHP 4.2 or later, you need to enable it manually when building PHP. Under UNIX, pass --enable-trans-sid to configure. If this build option and the run-time option session.use_trans_sid are enabled, relative URIs will be changed to contain the session id automatically. Now all works. Thanks for your consistent and thorough help, Guillaume -----Original Message----- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 11:16 AM To: Guillaume Dupuis Cc: [EMAIL PROTECTED] Subject: Re: [PHP] msession - giving me a hard time From: "Guillaume Dupuis" <[EMAIL PROTECTED]> > This works. My second page has the suffix '?PHPSESSID=e6t9tu43j9tj39j...', > that matches the 'echo $sessid' I've added to your script above, so this > part did work. But to test it, I do this in my second page: > > <?php > session_start(); > $sessid = session_id(); > echo $sessid; > ?> > > $sessid does echo a session_id... but not the one as the one I passed > it!!?!?! And I do see the right SID in the Address bar! No reason that shouldn't be working. Let's help out PHP a little more... <?php session_id($_GET['PHPSESSID']); session_start(); echo sesson_id(); ?> Try that. You're telling PHP to use the session id passed in the URL (which it should do by default, anyhow) by calling the session_id() function before session_start(). Are you clearing your cookies while doing all of this? session_start() on the second page may be picking up an old cookie instead of picking up the value in the URL... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php