Re: SESSIONS: store an OBJECT in php4 sessions?

From: Date: Thu, 16 Nov 2000 19:15:50 +0000
Subject: Re: SESSIONS: store an OBJECT in php4 sessions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25752@lists.php.net to get a copy of this message
You can store an object as a session variable just like you would store any other variable. session_start(); session_register('your_object'); /* Access it just like any other object expect its value is saved across the session */ $your_object->someFunction(); - Jamie Alessio - alessio@mvfx.com - Manex Visual Effects > ...If so, HOW would you do it, as it applies to a shopping cart? > Any pointers to a tutorial about it anywhere? > > (( I'm a beginner to sessions. I know the basics. But I don't know how an > "object" is stored & can't find any tutorial on it. )) >

« previous php.general (#25752) next »