Share this page

# ftp_logout

FTP Functions (ftp)

Performs a logout from an FTP server.

    int ftp_logout ( );

    Function objFTP.logout( ) as Integer      `for VB Script

The ftp_logout function performs a logout from an FTP server.

This function is for use with global sessions. For multiple sessions, use the ftp_logout_ex function, which allows you to specify a session identifier.

## Return Values

If this function succeeds, it returns LR_PASS. Otherwise, it returns LR_FAIL.

## Parameterization

Standard parameterization is not available for this function.

## Example

In the following example, the ftp_logout function logs out from an FTP server.

Copy code

    // Logon to the FTP server
    ftp_logon("FTP", "URL=ftp://ftp.abc.com", LAST );

    // Logout from the FTP server
    ftp_logout();

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: