Re: cookies
| From: | Casey Allen Shobe | Date: | Tue, 27 Nov 2001 19:08:26 +0000 |
| Subject: | Re: cookies | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75805@lists.php.net to get a copy of this message | ||
On 27 November 2001 12:45, Urb LeJeune wrote:
> Speaking of cookies, is there a way using session control
> to modify the expiration date of a cookie? I would like to add
> a check box in a login dialog that says "remember me"
The checkbox is a form field, and thusly passes it's value to the page that
loads when you submit the form.
So in the page that sets the cookie:
if ($checkbox == 1 ) {
setcookie (whatever);
} else {
setcookie (whateverelse);
}
--
Casey Allen Shobe
cshobe@softhome.net
GCS/CM d+ s+:->+: a-- C++(++++) ULU++++$ P- L+++>++++ E- W++ N++ !o K- w-- !O
M V- PS++ PE Y+ PGP>++ t+ 5+ X R>+ tv-- b++ DI+ D---- G++ e h-(*) r--- z--