On Wed, Aug 20, 2008 at 3:24 PM, Kristina Anderson
<[EMAIL PROTECTED]> wrote:
> Hi all --
>
> When visitors initially arrive on the site, a randomized session id is
> generated to track items they add to their cart.  The only problem is
> that when/if they return to/refresh the homepage during their visit,
> the session id changes and this will obviously result in unwanted
> issues.
>
> How can I prevent this from happening?  Is index.php the proper place
> to instantiate the session id?

Use session_id() as the key for your cart. That should not change for
the duration of their visit.

Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to