Docs HomeMongoDB Manual

Sessions Commands

Note

For details on a specific command, including syntax and examples, click on the link to the command's reference page.

CommandDescription
abortTransactionAbort transaction.
New in version 4.0.
commitTransactionCommit transaction.
New in version 4.0.
endSessionsExpire sessions before the sessions' timeout period.
killAllSessionsKill all sessions.
killAllSessionsByPatternKill all sessions that match the specified pattern
killSessionsKill specified sessions.
refreshSessionsRefresh idle sessions.
startSessionStarts a new session.