|
From: <php...@li...> - 2008-03-08 17:09:28
|
Hi,
>> $_SESSION['xy']="someValue";
>> $_SESSION['instance']=$repository;
>Depending on your PHP version it may or may not be possible to store Objects into the >session
>store.
I've solved this issue like this:
page 1:
$_SESSION['user'] = serialize($user);
page 2:
$user = unserialize($_SESSION['user']);
Regards,
Zoran
php...@li... wrote:
Hi,
> $repository=new Java("depths.moodle.RepositoryFactory");
> if (!isset($repository)){
The above isset(..) is wrong and obsolete. new ClassName() cannot return null.
Furthermore Java NULL values are represented by NULL proxies, not by PHP null or void.
> $_SESSION['xy']="someValue";
> $_SESSION['instance']=$repository;
Depending on your PHP version it may or may not be possible to store Objects into the session
store.
> protocol error: , Invalid document end at col 22. Check the back end log for details.
> Could you please indicate what did cause this error?
Sorry, but I can't read your back end log file. :)
Regards,
Jost Boekemeier
Lesen Sie Ihre E-Mails auf dem Handy.
www.yahoo.de/go
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
|