Share this page

# lrd_session_end

Ends a user session for a server. (Oracle 8 and later)

    LRDRET lrd_session_end( void const *mpvLRDDBIHandleSvcCtx, void const *mpvLRDDBIHandleSession, long const mliMode,
    int const miDBErrorSeverity );

mpvLRDDBIHandleSvcCtx | A pointer to an LRDDBI service context handle.
mpvLRDDBIHandleSession | A pointer to an LRDDBI session handle.
mliMode | The mode of operation. Only a zero value is supported.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_session_end function ends a user session for a server. This function is only supported for Oracle 8.0 and higher.

For additional details, refer to the Function Header File lrd.h.

## Return Values

See LRD Return Values.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

In the following example, lrd_session_end terminates an Oracle session, OraSes1.

Copy code

    lrd_ora8_handle_alloc(OraEnv1, STMT, &OraStm3, 0);
    lrd_ora8_stmt(OraStm3, "select * from dual\n", 1, 0, 0);
    lrd_ora8_exec(OraSvc1, OraStm3, 0, 0, &uliRowsProcessed, 0, 0, 0, 0, 0);
    lrd_ora8_bind_col(OraStm3, &OraDef2, 1, &DUMMY_D17, 0, 0);
    lrd_ora8_attr_set(OraDef2, CHARSET_FORM, "1", -1, 0);
    lrd_ora8_fetch(OraStm3, -1, 15, &uliFetchedRows, PrintRow6, 2, 0, 0);
        /* space for grid */
    lrd_handle_free(&OraStm3, 0);
    lrd_session_end(OraSvc1, OraSes1, 0, 0);
    lrd_server_detach(OraSrv1, 0, 0);
    lrd_handle_free(&OraEnv1, 0);

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: