I am having a similar problem with php4.2.0
I am using session_register().
I set up a small application to test it out with 2 pages. Page1.php contains the following code:
<?php
// put the user in the sesssion
if (!session_is_registered('user')) {
session_register('user');
$user = "Johnny";
}
?>
page1.php has a URL link to Page2.php. Page2.php has the following code:
<?php
echo $user;
?>
Now the session_id is posted with URL and the data is saved in the sessiondata. However, I get the following error:
"Notice: Undefined variable: user in D:\SessionTest\page2.php on line 6"
I have tried using the $_SESSION array variable also and I still get the "undefined variable" error.
Any help, pointer, tips or ideas regarding this problem of ours would be most grateful 🙂
tnxs!
David.