> The object only exists for that instance of the script, so when the user
> navigates to the next page, the object is freed up from the memory.
> There are a couple of ways you could get round this:
>
> * don't navigate away from the page, and use AJAX calls to update
> parts of the pa
Sumit Sharma wrote:
> What I have done is declared one User class in a separate file and created
> its object there only. After this included this file in all other file which
> are using its object. So the object is creating only once and included in
> every other file only once. Now when I over w
his
> is a separate issue than setting $_SESSION variables.
>
>
>
>
>
> -- Forwarded message --
> From: Ashley Sheridan
> Date: Wed, Sep 9, 2009 at 9:14 PM
> Subject: Re: [PHP] Re: Class variable value lost
> To: Shawn McKenzie
> Cc: Sumit Sharma
On Wed, Sep 9, 2009 at 11:58 AM, Sumit Sharma wrote:
> What I have done is declared one User class in a separate file and created
> its object there only. After this included this file in all other file which
> are using its object. So the object is creating only once and included in
> every other
--
From: Ashley Sheridan
Date: Wed, Sep 9, 2009 at 9:14 PM
Subject: Re: [PHP] Re: Class variable value lost
To: Shawn McKenzie
Cc: Sumit Sharma , PHP General Mailing List <
php-general@lists.php.net>
On Wed, 2009-09-09 at 10:36 -0500, Shawn McKenzie wrote:
> Sumit Sharma wrote:
> > Hi,
On Wed, 2009-09-09 at 10:36 -0500, Shawn McKenzie wrote:
> Sumit Sharma wrote:
> > Hi,
> >
> > I have developed a listing site which is totally class based. Now when it
> > authenticates a user login and set appropriate class variables to true and
> > set user info in user class variables, value o
Sumit Sharma wrote:
> Hi,
>
> I have developed a listing site which is totally class based. Now when it
> authenticates a user login and set appropriate class variables to true and
> set user info in user class variables, value of all the set variables are
> lost when I forward the user to members
7 matches
Mail list logo