Active propertyA session is active if the user has logged on to a valid session dictionary using ctdbLogon(). To render a session inactive, log off using ctdbLogout(). To verify the status of the session, use ctdbIsActiveSession(). Example
if (ctdbIsActiveSession(hSession)) {
printf(“Server name: %s\n”, ctdbGetServerName(hSession)); printf(“User name : %s\n”, ctdbGetUserLogonName(hSession)); printf(“Password : %s\n”, ctdbGetUserPassword(hSession)); } |
|||