End a session (Server)

The MI_EVENT_END_SESSION event occurs when the database server reaches the end of the current session. A session begins when the client application opens a database connection and ends when the client application closes the connection (or when the client application ends).

These events occur only within the context of a C UDR. Their main purpose is to clean up resources that the UDR might have allocated. The database server does not throw the MI_EVENT_END_SESSION event when it terminates abnormally.