Re: Re: setcookie() and Max-Age
| From: | Daniel Convissor | Date: | Wed, 18 Aug 2004 19:33:40 +0000 |
| Subject: | Re: Re: setcookie() and Max-Age | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12224@lists.php.net to get a copy of this message | ||
On Wed, Aug 18, 2004 at 08:54:56PM +0200, Fabrice Vignals wrote:
> Good new for this feature.
>
> I think array in arguments is not so good, for documentation +
> comprehension + syntax code
>
> Documentation approximate Syntax :
> bool SetCookie( string $name, [string $value], [array $array('Max-Age'=> int
> $max-age, ['Comment'=> string $comment],
> > ['Path'=> relative||absolute path '/'] )] )
I disagree. Arrays add significant flexibility, thereby easing long
term use and comprehension. Sample docs:
bool SetCookie( string $name, [string $value], [array $options])
The $options array is an associative array which can contain
any combination of the following elements:
Max-Age integer blah blah
Comment string blah blah
etc...
Then provide a usage example.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409