Share this page

# web_cleanup_cookies

Removes all cookies currently stored by the Vuser.

## C Language

    int web_cleanup_cookies( );

Cookie Functions

## Java Language

    intobject.cleanup_cookies( );

Cookie Functions | Java Syntax

Argument | Description
--- | ---
object | An expression evaluating to an object of type WebApi. Usually web for Java. See also Function and Constant Prefixes.

## Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

## Parameterization

Parameterization is not applicable to this function.

## General Information

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

Note: Scripts do not use (access 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_add_cookie, web_remove_cookie, and web_cleanup_cookies) manipulate these temporary cookies, and do not affect cookies stored by your browser.

This function is supported for all web scripts.

## C Example

The following example removes all cookies currently stored by the Vuser.

    web_cleanup_cookies();

## Java Example

The following example removes all cookies currently stored by the script.

    web.cleanup_cookies()

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