I am having problems retrieving objects stored in a
session. When they are retrieved, they are incomplete
objects (__PHP_Incomplete_Class Object).
I've done some research and this seems to be a common
problem, typically solved by setting the
session.auto_start to off. However this setting is
of
41"
Line 41 calls $user->login() which is the function above. What's odd is the
fact the first script call works, since the session variable gets populated.
If I comment out the second call, it works fine. Anyone have any ideas?
Stephen Craton
[EMAIL PROTECTED]
IM: [EMAIL PROTECTED]
ht
* Thus wrote Stephen Craton:
> I've been working on a script for a while now and it works perfectly on my
> local machine. I'm using a couple of classes, mainly my database and users
> classes.
>
> After logging in, I assign a session variable to the user's row in the
> database: $_SESSION['user']
I've been working on a script for a while now and it works perfectly on my
local machine. I'm using a couple of classes, mainly my database and users
classes.
After logging in, I assign a session variable to the user's row in the
database: $_SESSION['user'] = $db->row;
This works fine locally, bu
At 06:20 30.01.2003, Weston Houghton said:
[snip]
>I'm trying to register an object in the session, and access that object
>from 2 different pages.
>
>I start off in the first file, and do:
>include("nycmgMail.php");
>session_start();
>$myMailer = new nycmg
Ok, now I'm frustrated.
I'm trying to register an object in the session, and access that object
from 2 different pages.
I start off in the first file, and do:
include("nycmgMail.php");
session_start();
$myMailer = new nycmgMail();
$myMailer->buildRecipients();
$_SESSION['myMailer'] = $myMaile
6 matches
Mail list logo