EssLogoutUser

Allows a Supervisor or an Application Designer to disconnect another user from an Essbase Server.

Syntax

ESS_FUNC_M EssLogoutUser (hCtx, LoginId); 
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle of user forcing the log out.

LoginId

ESS_LOGINID_T

Login ID of user to be logged out.

Notes

Return Value

None.

Access

To call this function, you must have Supervisor or Application Designer privilege.

Example

ESS_FUNC_M ESS_LogoutUser (ESS_HCTX_T hCtx,
ESS_HINST_T hInst)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_USHORT_T usrcnt;
ESS_PUSERINFO_T users;
sts = EssListConnections(hCtx, &usrcnt,
&users);
if(!sts)
{
if(usrcnt > 0)
{
/***************************************
* Log out first user from the list *
***************************************/
sts = EssLogoutUser(hCtx, users[0].LoginId);
if(!sts)
EssFree(hInst, users);
}
}
return(sts);
}

See Also