Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12212 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26276 invoked by uid 1010); 18 Aug 2004 07:28:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26054 invoked from network); 18 Aug 2004 07:28:36 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 18 Aug 2004 07:28:36 -0000 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i7I7SZFJ004367 for ; Wed, 18 Aug 2004 09:28:35 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id i7I7SU4h004351; Wed, 18 Aug 2004 09:28:30 +0200 Date: Wed, 18 Aug 2004 09:28:30 +0200 (CEST) X-X-Sender: derick@localhost To: Rasmus Lerdorf cc: Andi Gutmans , Christian Schneider , internals@lists.php.net In-Reply-To: Message-ID: References: <5.1.0.14.2.20040817161212.044edd50@127.0.0.1> <5.1.0.14.2.20040817161212.044edd50@127.0.0.1> <5.1.0.14.2.20040817164902.04584dd0@127.0.0.1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] Re: setcookie() and Max-Age From: derick@php.net (Derick Rethans) On Tue, 17 Aug 2004, Rasmus Lerdorf wrote: > While that is an idea that will probably work, it seems messy to me. Code > with hardcoded expiries in the past that previously wouldn't cause any > cookies to be sent will now suddenly start sending cookies. Right, I think that is a bad idea too. > I think I would rather see a separate function, or perhaps overload it by > type instead. As in, SetCookie("foo","bar","+3600"); PHP is typeless (you words :) so I don't like this either as +3600 is the same as "+3600" for most other functions. I'd suggest to either add another parameter or make a new function which accepts "cookie" options through an array. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org