I have a doubt and I can't find a similar question.
In a generic php script like:
$pdo->beginTransaction();
//...
//many things to do...
//...
$pdo->commit();
Let's say the user stops the page loading or loses connection before the commit is reached. Does the transaction remain opened? Do I have to try a rollback before the beginTransaction?