sdaiCloseSession


Close an open _EDMserver_ session. No data in the actual EDMdatabase can be accessed before a new _EDMserver_ session is opened by the sdaiOpenSession function. All open models and repositories are closed before the _EDMserver_ session is closed to ensure no loss of data.
See related function: sdaiOpenSession
Header:
#include "sdai.h"
Prototype:
void sdaiCloseSession(void);
Arguments:
None.
Returns:
Void – use sdaiErrorQuery function to check for error in operation.
Example:
SdaiErrorCode errCode;
...
sdaiCloseSession();
errCode = sdaiErrorQuery();
if (errCode) {
/* Error in operation */ 
printf("\nError: %s in sdaiCloseSession \n", 
edmiGetErrorText(errCode)); 
goto error; 
}
. . .