(mongodb >=1.4.0)
La classe MongoDB\Driver\Session représente une session client et est retournée par MongoDB\Driver\Manager::startSession(). Les commandes, les requêtes et les opérations d'écriture peuvent ensuite être associées à la session.
MongoDB\Driver\Session::TRANSACTION_NONEMongoDB\Driver\Session::TRANSACTION_STARTINGMongoDB\Driver\Session::TRANSACTION_IN_PROGRESSMongoDB\Driver\Session::TRANSACTION_COMMITTEDMongoDB\Driver\Session::TRANSACTION_ABORTED