Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbSetSessionPath

Set the default session path.

Declaration

CTDBRET ctdbSetSessionPath(CTHANDLE Handle, pTEXT Path)

Description

ctdbSetSessionPath() sets the default session path in the session handle, where the session dictionary is located or will be created. Subsequent calls to functions like ctdbLogon() will use the session dictionary located in this path. Think of this call as setting the "working directory" for your session on the server.

  • Handle [in] the session handle.
  • Path [in] the pointer to the new default session path.

Returns

ctdbSetSessionPath() returns CTDBRET_OK if successful, or the c-tree error code on failure.

Example


ctdbSetSessionPath(handle, "c:\mySession");

eRet = ctdbLogon(handle, "FAIRCOMS", "ADMIN", "ADMIN");


See also

ctdbGetSessionPath(), ctdbLogon(), ctdbCreateSession()

TOCIndex