Re: Re: setcookie() and Max-Age
| From: | Jason Garber | Date: | Thu, 19 Aug 2004 21:24:51 +0000 |
| Subject: | Re: Re: setcookie() and Max-Age | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12274@lists.php.net to get a copy of this message | ||
Hello,
+1 on the array parameter. It's flexible, easy to document (as dan put
it), and should accommodate future options.
Also, throwing E_NOTICES would be good to notify you if you mis-type
something, and they can always be suppressed if you want to send an
"unsupported" option.
--
Best regards,
Jason mailto:jason@ionzoft.com
DC> bool SetCookie( string $name, [string $value], [array $options])
DC> The $options array is an associative array which can contain
DC> any combination of the following elements:
DC> Max-Age integer blah blah
DC> Comment string blah blah
DC> etc...
DC> Then provide a usage example.
DC> --Dan