1. If you don't specify an expiration date, it's good for the session. Usually this means until the exit the browser. Otherwise you must set a date far into the future.
2. You can name cookies, thus storing multiple values in multiple cookies. Or you can store multiple values in one cookie by using your own delimiter. A nice PHP function to look at is serialize() and unserialize(), which would allow you to store an array in a single cookie.
Keep in mind cookie are limited to 4K. Not that you would even want to store that much on the client side.
On Thursday, June 19, 2003, at 04:10 PM, Sparky Kopetzky wrote:
Yes, this question is about PHP cookies.
Two questions:
1. How do you setup a cookie that will not expire??
2. How do you put 2 items that you want to save in the cookie and retrieve?? Examples in the PHP manual only show how to work with a single value.
Thanks!
Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net
-- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php