note 44082 added to function.session-register
| From: | php at w2wave dot com | Date: | Wed, 14 Jul 2004 19:19:38 +0000 |
| Subject: | note 44082 added to function.session-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73234@lists.php.net to get a copy of this message | ||
Looking to add objects to a session and then retrieve them but failing miserable.
Am doing the following in first file:
session_start();
$_SESSION['user'] = $userModel;
header("Location: MainView.php");
And following in second file:
$user = &$_SESSION['user'];
echo $user->getUserContact();
But get the following error:
Fatal error: Call to a member function on a non-object in
/usr/local/home/httpd/vhtdocs/secure.w2wave.com/v2/MainView.php on line 7
Any help appreciated.
----
Manual Page -- http://www.php.net/manual/en/function.session-register.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44082
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44082&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44082&report=yes
Search -- http://master.php.net/manage/user-notes.php