Login/Logout (78)
The Login/Logout operation (B_LOGIN/B_LOGOUT) allows a user to specify his/her user credentials and obtain authentication and authorization tokens from the database engine. This operation also allows the user to reset his/her login credentials so that they must be entered again to gain access to the database.
Parameters
 
Prerequisites
Login Procedure
1
2
3
Logout Procedure
1
2
3
Result
If the Login or Logout operation is successful, the database engine returns status 0; otherwise, one of the following status codes may be returned:
Notes
The combined length of the database URI must be less than 255 bytes. This is due to the maximum size of the key buffer.
The Login operation has a performance cost. You should not code applications to login and logout on every file. Instead, login once to a database at the beginning of a session, then logout when the database work is complete.
Positioning
The Login/Logout operation has no effect on any file currency information.