Re: [PHP] Objects and sessions

2004-12-09 Thread Thomas Munz
I think, its not possible to init an Objeect on a session. Session will be rebuild on each reload of the site based on the session id, i think... Maybe here the object can't be rebuild anymore... > Following code: > > > class SessionTestC { > protected $value; > > function __construct (

[PHP] [SOLUTION] Re: [PHP] Objects and sessions

2004-12-09 Thread Francisco M. Marzoa Alonso
Thomas Munz wrote: I think, its not possible to init an Objeect on a session. Yes, it can. The problem was with serialization. With session.auto_start set to 1 on php.ini, seems like session's objects are unserialized before loading the script, so the class is not loaded when the session unseri

Re: [PHP] Objects and sessions

2001-11-27 Thread Tamas Arpad
On Monday 26 November 2001 23:37, Christopher William Wesley wrote: > On Mon, 26 Nov 2001, Greg Sidelinger wrote: > > Can someone tell me how to store a class in a session var. I > > want to > > There are several things you need to do. > > 1) include the class definition before you do anything >

Re: [PHP] Objects and sessions

2001-11-26 Thread Christopher William Wesley
On Mon, 26 Nov 2001, Greg Sidelinger wrote: > Can someone tell me how to store a class in a session var. I want to There are several things you need to do. 1) include the class definition before you do anything 2) start the session shortly thereafter 3) register a session variable 4) create y

Re: [PHP] Objects and sessions

2001-11-26 Thread Tamas Arpad
> later on I get errors about the class functions being undefined. > Can anyone please point me in the right direction on how to > register my objects as session vars. Class definition *must* be before any session_start() or sessgion_register() if there are previously stored objects in the se

Re: [PHP] Objects and sessions

2001-07-03 Thread Brad Hubbard
On Tue, 3 Jul 2001 11:47, Ethan Schroeder wrote: > If what you mean is if PHP sessions can register objects, that is true and > quite effective. Can you elaborate on this Ethan so I'm sure I understand what you're saying. Cheers, Brad -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Objects and sessions

2001-07-02 Thread Ethan Schroeder
If what you mean is if PHP sessions can register objects, that is true and quite effective. Ethan Schroeder - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 4:36 PM Subject: [PHP] Objects and sessions