Share this page

# web.removeCookie

Removes the specified cookie.

Example | Cookie Functions

## Syntax

    web.removeCookie( cookie );

Property Name | Description
--- | ---
cookie | The name of the cookie to remove. The VALUE of the name is not required, and is ignored if it is specified.

## Return Values

Not applicable

## Parameterization

The following argument can be parameterized using standard parameterization: Cookie

## General Information

The web.removeCookie function removes a cookie from the list of cookies available to a Vuser. This function specifies the name of the cookie to remove.

Note: Vusers do not use (access or modify) the cookies that are stored by your browser. Instead, each script uses the cookies that are sent to the Vuser by the server host at runtime. These cookies are maintained only while the script runs. The web-cookie functions (web.addCookie, web.removeCookie, and web.cleanupCookies) only manipulate these temporary cookies.

You can refine the function's usage by specifying the path and/or domain cookie attributes from the original function call. This enables you to delete one cookie among cookies with identical names, but different path and/or domain attributes. Note that if you delete a cookie using only the cookie name (without the path or domain), the function deletes all cookies with that name, disregarding their domain and path.

web.removeCookie is added by the user when enhancing the script. It is not recorded.

## Example

    web.removeCookie ("client_id");

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: