Daniel Guerrier wrote:
The second page should be

<?php
        session_start();
     echo { $_SESSION['foo'] . "<BR>\n");
     echo { $_SESSION['bar'] };
?>

you're missing the session_start()

You need it on every page that you plan to use session
on.

He has session_start() on page two.


<snip>

page2.php ---------- <?php session_start(); echo "foo = {$_SESSION['foo']}"; echo "bar = {$_SESSION['bar']}"; ?>

Same here....


<?php
    echo { $_SESSION['foo'] . "<BR>\n");
    echo { $_SESSION['bar'] };
?>
</snip>

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to