That's what he was doing and he gave us the output. You can have an object stored in $_SESSION as long as the class and object were defined _before_ you stared the session.

You would therefore access it like this:

$some_var = $_SESSION['object_name']->varname;

Cheers!

-Michael
Chris Shiflett wrote:

--- Mignon Hunter <[EMAIL PROTECTED]> wrote:


When I print_r my session vars> part of what get is:



Do this:


print_r($_SESSION);

Show us what that outputs.

Your output seemed to infer that you are doing something else when you "print_r
your session vars", as _SESSION was listed as a key within another array. I'm
not sure what you're doing there.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/






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



Reply via email to