Arbortext Command Language > Repository API > sess_connect
  
sess_connect
sess_connect (dlid, id, pw, repid[, ud])
* 
This function performs one of the many steps necessary to connect a user to a repository. If you are writing a script that connects to a repository, you should use the sess_start function, as it will perform all the connection steps in their proper order.
Connects the user id using a password of pw to the repository repid with the dynamic library ID of dlid.
The ud parameter passes user defined data through to the adapter-specific implementation of this function.
If the operation fails, the function places error data in $main::ioerr and returns -1. If successful, the function returns a new session handle for the connection.
Related Topics
Repository API Callback functions
path_session function