Hello,

How do you read back the value of a serialize object that you put into a
session variable?

My exemple:

page1.php
---------------
session_start();

include( "myObject.php" );

$o = new myObject();
$o->load_variable( "100", www.domain.com);
$o = serialize( $o );

session_register( "o" );
Header("Location:page2.php");
exit;


page2.php
---------------
session_start();
include( "myObject.php" );

print $HTTP_SESSION_VARS['o'];    // prints the line ok

print "<br>". $o->var1;  // nothing...
print "<br>". $o->var2;

It does not work event when I do $o = unserialize( $o ) before displaying..

py



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to