Skip Headers

# Logging Out of a Session

Previous

Next

When you are finished using a database or server session, you must log out of the session using `Session` method `logout`.

When logging out of a session broker session logs out of all sessions registered with the session broker.

When you are finished using a client session, you must release the session and any connections allocated to it using `Session` method `release`.

Although TopLink provides a finalizer to release sessions, this is a last resort. Oracle recommends that you always log out of your sessions.