[ library(dbi) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

# session_close(++Session)

close a session for the DBMS

Session
  A session handle

## Description

This closes a session explicitly, disconnecting from the DBMS server. It takes effect immediately. Any uncommitted transactional updates are rolled back. Some resources associated with the session are also freed.

Cursors for this session are not closed by the closing of the session, but they will no longer be able to access the database, but will still use some resources. It is recommended that cursors be closed before closing the session. All resources associated with a session are only freed when both the session and all the cursors are closed.

### Exceptions

(5) type error
  Session is not a session handle

## See Also

session_start / 4, cursor_close / 1