June 26th, 2000, 01:48 AM
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.
<a href="TestPage2.php">Next Page</a>
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:
Now, I cannot see any SessionID on screen.
I also tried
it is still not working, so I test the $SID value by changing TestPage1 as follows:
Modified TestPage1 (2)
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.
Note: COOKIE must be disable