GOLF(2gg)

πŸ“¦ version 601.4.41, in ubuntu questing

okay so you're here for the delete-cookie manual page from the Development section of GOLF(2gg)? slay, pull up a chair 🫢


✨ NAME ✨

delete-cookie β€” (cookies) πŸͺ


🎯 PURPOSE 🎯

It deletes a cookie. That's the whole job. Iconic, honestly. πŸ’…


πŸŽ€ SYNTAX πŸŽ€

delete-cookie <cookie name> [ path <cookie path> ] [ status <status> ] [ secure <secure> ]

πŸ¦‹ DESCRIPTION πŸ¦‹

delete-cookie marks a cookie named <cookie name> for deletion, so it gets sent back in the reply telling the client (like, a browser, yk) to delete it. bye bestie πŸ‘‹

Newer client implementations require a cookie deletion to use a secure context if the cookie is considered secure, and it is recommended to use secure clause to delete such a cookie. This is the case when either secure clause is used without boolean variable <secure>, or if <secure> evaluates to true.

<cookie name> is a cookie that was either received from the client as a part of the request, or was added with set-cookie.

heads up queen ⚠️ a cookie can be deleted before or after header is sent out (see out-header). However a cookie must be deleted prior to outputting any actual response (such as with output-statement or print-out for example), or the request will error out (see error-handling). no cap, that's the rule 😭

<status> (in status clause) is a number that will be GG_ERR_EXIST if the cookie did not exist, or GG_OKAY if it did. like a little report card πŸ“

The same cookie name may be stored under different URL paths. You can use path clause to specify <cookie path> to ensure the desired cookie is deleted. lowkey important β€” don't delete the wrong twin πŸ’€


🌈 EXAMPLES 🌈

delete-cookie "my_cookie"
set-bool is_secure = true
delete-cookie "my_cookie" path "/path" secure is_secure

πŸ‘€ SEE ALSO πŸ‘€

  • Cookies

delete-cookie get-cookie set-cookie See all documentation


and that's the vibe check, bestie β€” go forth and delete cookies responsibly ✨πŸͺ

this page is from version $VERSION and it's dated $DATE β€” love u, mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from