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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to