Re: Re: setcookie() and Max-Age
| From: | Derick Rethans | Date: | Wed, 18 Aug 2004 07:28:30 +0000 |
| Subject: | Re: Re: setcookie() and Max-Age | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12212@lists.php.net to get a copy of this message | ||
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