On 19-Jun-2003 Steve Keller wrote:
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote:
2. How do you put 2 items that you want to save in the cookie and
retrieve??
Smuch 'em together into a single variable with a delimiter you're sure
won't show up in either value, something like #@@#,
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
Hello,
This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 21:13,
lines prefixed by '' were originally written by you.
Yes, this question is about PHP cookies.
Two questions:
1. How do you setup a cookie that will not expire??
You can't, but you can use an expiry date in the
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:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 4:10 PM
To: PHP General
Subject: [PHP] Cookies- peanut butter or chocolate
Both.
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
1. How do you setup a cookie that will not expire??
You can't.
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.
You can't. Use an array or two cookies.
---John Holmes...
--
PHP General
Hi,
1. How do you setup a cookie that will not expire??
You can't
however you could just set the year into the distance future a few
years.
-Dan Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$name == $valuebr\n;
}
}
- Original Message -
From: Sparky Kopetzky [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 10:10 PM
Subject: [PHP] Cookies- peanut butter or chocolate??
Yes, this question is about PHP cookies.
Two questions:
1. How do you setup
At 6/19/2003 02:10 PM, Sparky Kopetzky wrote:
2. How do you put 2 items that you want to save in the cookie and
retrieve??
Smuch 'em together into a single variable with a delimiter you're sure
won't show up in either value, something like #@@#, between them. Then,
when you read the cookie
that you determine the two seperatevalues actually stored
there.
Henning Sittler
www.inscriber.com
-Original Message-
From: Sparky Kopetzky [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 4:10 PM
To: PHP General
Subject: [PHP] Cookies- peanut butter or chocolate
10 matches
Mail list logo