Re: shopping cart question

From: Date: Sat, 02 Mar 2002 15:39:03 +0000
Subject: Re: shopping cart question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86895@lists.php.net to get a copy of this message
On Fri, 1 Mar 2002, Jon Feldhammer wrote: > The way I see it, there are three options for maintaining state in php. > I've already taken the route of keeping a random session id and putting it > into a database to track a user/cart. So the only variable i need to track > is the session id. The three options I know of then are: Did I understand correctly you are implementing your own session handling? Why not use PHP's native sessions? http://www.php.net/manual/en/ref.session.php > search engines like these). Also, with option 1 you need to have a <?php > echo "?session_id=$session_id" ?> type line in every href which is a pain in > the ass. Option 2 is great, if the user uses cookies, if not, you cannot This can be automated with --enable-trans-sid. -- Mika Tuupola http://www.appelsiini.net/~tuupola/

« previous php.general (#86895) next »