Re: Cookies- peanut butter or chocolate??

From: Date: Thu, 19 Jun 2003 23:52:31 +0000
Subject: Re: Cookies- peanut butter or chocolate??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152259@lists.php.net to get a copy of this message
For (2) you could even build an array, object, etc. if you need to store several values and use serialize() right before setting the cookie, and unserialize when you retrieve the cookie. Joseph "Henning Sittler" <Henning@inscriber.com> wrote in message news:FBA86B8BA4D6D411BC2A0002B323D39A019412EB@mail2.inscriber.local... > 1. Set a big value in seconds for the time argument > > 2. Send 2 cookies > OR > Create one string value containing the two values you want to save, > seperated by a a sepcific character of your choice and send this new value > as your cookie. Remember to parse the cookie's value when you request it in > your script, so that you determine the two seperatevalues actually stored > there. > > > Henning Sittler > www.inscriber.com > > > > -----Original Message----- > From: Sparky Kopetzky [mailto:sparkyk@blackmesa-isp.net] > Sent: Thursday, June 19, 2003 4:10 PM > To: PHP General > Subject: [PHP] Cookies- peanut butter or chocolate?? > > > 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 >

« previous php.general (#152259) next »