CFtpServer::OnLogout Method  
 
virtual void OnLogout(
  UINT nClientId,  
  LPCTSTR lpszUserName  
);

A virtual method that is invoked after the client has logged out or reinitialized the session.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.
lpszUserName
A pointer to a string that specifies the user name.

Return Value

None.

Remarks

The OnLogout event handler is invoked after the client has successfully logged out using the QUIT command or reinitialized the session using the REIN command. To implement an event handler, the application should create a class derived from the CFtpServer class, and then override this method.

The application should not depend on this event handler always being invoked when a client is disconnected from the server. This event only occurs when the client sends the QUIT or REIN commands and will not be invoked if the client connection is aborted or disconnected for some other reason, such as exceeding the idle timeout period. If the application needs to update data structures or perform some cleanup when a client disconnects, that should be done in the OnDisconnect event handler.

The application should not call the DisconnectClient method in the handler for this event because the client is either in the process of disconnecting or expects that it can submit new credentials to the server.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftsv10.lib
Unicode: Implemented as Unicode and ANSI versions.

See Also

OnConnect, OnDisconnect, OnLogin