SESSIONS: store an OBJECT in php4 sessions?

From: Date: Thu, 16 Nov 2000 17:52:50 +0000
Subject: SESSIONS: store an OBJECT in php4 sessions?
Groups: php.general 
Request: Send a blank email to php-general+get-25739@lists.php.net to get a copy of this message
I came across this comment in someone else's PHP code for a shopping cart: // Initialize the Cart. // We can't store an object in PHP4 sessions, so instead we store the list of articles // instead, and "start" a new Cart every time. Isn't it true that we CAN store an object in a php4 session now? (This app, above, was written while php4 was in beta.) If so, HOW would you do it, as it applies to a shopping cart? Any pointers to a tutorial about it anywhere? Thanks! Derek Sivers list@hitmedia.com

« previous php.general (#25739) next »