Don't store your object in the session, that is just bad design.
Store a lookup value, then grab your object from your DB only when you
need it.

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    "LINUX is obsolete"  -- Andy Tanenbaum, January 29th, 1992
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       http://www.JEEP-FOR-SALE.com/ -- I need a buyer
  Get your own Free, Private email at http://www.smackdown.com/

On Thu, 22 Feb 2001, Kevin Beckford wrote:

> Date: Thu, 22 Feb 2001 12:36:29 -0500
> From: Kevin Beckford <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] sessions and objects
> 
> Hello all,
>     I've been away from php for a while, ( and I'm glad to be back) Last
> time I checked in, sessioning was kinda working - especially the sessioning
> of objecs. Is this feature robust enough for production now? I want to do
> basic sessioning, and I don't have a lot of development time. What I want to
> do is simply :
> - Log in
> -instantsiate an object that will contain the user information
> -save the data in session
> -allow me to recreate that object from page to page
> How would I do/find out how to do this?
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to