(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_NONEIl n'y a pas de transaction en cours.
MongoDB\Driver\Session::TRANSACTION_STARTINGUne transaction a été démarrée, mais aucune opération n'a été envoyée au serveur.
MongoDB\Driver\Session::TRANSACTION_IN_PROGRESSUne transaction est en cours.
MongoDB\Driver\Session::TRANSACTION_COMMITTEDUne transaction a été validée.
MongoDB\Driver\Session::TRANSACTION_ABORTEDUne transaction a été annulée.