Deletes a cookie.
delete-cookie deletes a cookie named <cookie name>, so it is sent back in the reply telling the client (such as browser) to delete it. <cookie name> is a cookie that was either received from the client as a part of the request, or was added with set-cookie
. Note that delete-cookie must be issued before outputting HTTP header with out-header
(as deleting a cookie in a client is a part of response's header), or otherwise it won't be deleted.
<status> is the integer variable (which can be created with "define" if it does not exist) that will be -1 if the cookie did not exist, or 0 or greater if it did.
The same cookie name may be stored under different URL paths. You can use the optional "path" clause to specify <cookie path> to ensure the desired cookie is deleted.