I am working on something that pass SessionID from pages to pages. Since some users never use Cookie in his browsers.

I have made two simple pages to test this thing.

Before I try the test pages, I have
- compiled PHP4 with --enable-trans-sid
- disabled COOKIE in my browers.


TestPage1.php
=====================================
<?
session_start();
$userid="123";
session_register("userid");
?>
<html>
<?=SID?>
<br>
<a href="TestPage2.php">Next Page</a>
</html>
======================================

TestPage2.php
======================================
<?
echo $PHPSESSID;
?>
======================================

In TestPage1.php, I can see the SessionID on both screen, and on the link 'Next Page'.
In TestPage2.php, I can see the SessionID on screen too.
It seems it is working fine. But if I have modifiedTestPage1.php in this way:

Modified TestPage1.php
========================================
<?
session_start();
$userid="123";
session_register("userid");
header("Location:http://www.example.com/TestPage2.php");
?>
=========================================

Now, I cannot see any SessionID on screen.
I also tried
header("Location:http://www.example.com/TestPage.php$SID")
it is still not working, so I test the $SID value by changing TestPage1 as follows:

Modified TestPage1 (2)
=======================================
<?
session_start();
$userid="123";
session_register("userid");
echo $SID;
?>
=======================================
if course, nothing will be shown on screen, but the server have created a session file at /tmp

if i place 'echo $SID' under <html> tags
I can see the SessionID value.
But I just want the Header() able to pass the SessionID value.
any solution?

Note: COOKIE must be disable