Sessions Commands
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
Note
For details on a specific command, including syntax and examples, click on the link to the command's reference page.
Command | Description | Atlas Support |
---|---|---|
Abort transaction. | Yes | |
Commit transaction. | Yes | |
Expire sessions before the sessions' timeout period. New in version 3.6. | Yes | |
Kill all sessions. New in version 3.6. | No support for M0, M2, M5 and M10 clusters. | |
Kill all sessions that match the specified pattern | No support for M0, M2, and M5 clusters. New in version 3.6. | |
Kill specified sessions. New in version 3.6. | No support for M0, M2, and M5 clusters. | |
Refresh idle sessions. New in version 3.6. | Yes | |
Starts a new session. New in version 3.6. | Yes |