# setcookie() and Max-Age

- Thread: https://externals.io/message/12221
- Original archive: https://news-web.php.net/php.internals/12221
- Started by Fabrice Vignals on 2004-08-18T18:54:56+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12221 — Fabrice Vignals — 2004-08-18T18:54:56+00:00

URL: https://externals.io/message/12221#12221

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 '/'] )] )


Also, I don't have any php function in mind, that use a "specific array" (
array $key fixed ) as argument.
