(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.