using cookies

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

using cookies

Post by aceconcepts »

Hi,

How do i set a cookie so that it expires after a given period?

Also, if a customer adds items to a shopping cart, how do i keep their shopping cart content using cookies?

I hope this makes sense.

Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

  1. setcookie()
  2. sessions or storing the item list in the database
Post Reply