JavaScript Functions > Alphabetical Listing of Web Functions > web.cleanupCookies

web.cleanupCookies

Removes all cookies currently stored by the Vuser.

Syntax

web.cleanupCookies( );

Return Values

Not applicable

Parameterization

Parameterization is not applicable to this function.

General Information

The web.cleanupCookies function removes all the cookies that are currently stored for use by the script.

Note: Scripts do not read or modify the cookies that are stored by your browser. Instead, each Vuser 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) manipulate these temporary cookies, and do not affect cookies stored by your browser.

Example

web.cleanupCookies();