You may use addAttribute() to add attributes to the cookie. Note that you must quote the attribute values by yourself if desired. Valid optional attributes are (cf. RFC 2965):
Comment=value (Note: value must be UTF-8 encoded)
CommentURL="http_URL"
Discard
Domain=value
Max-Age=value
Path=value</li
Port[="portlist"]
Secure
Note: Cookies sent to the client via the PHP4 session handling functions do not fully conform RFC 2965.