Confession is not magic.
Although there is a bizarre caricature by many people of the hypocrisy that could exist in the process which goes along the line.... go to Confession before you go out on Saturday night so that you can go ahead and do the same thing and so the cycle repeats itself.... this is actually something that is expressly forbidden.
If you are to receive forgiveness (absolution) then your intention has to be that you intend to not commit the sin again.
You can't, for example, confess to stealing from work, have the sleight wiped claim but fully intend to go on doing it.
The Confessor could/would/should in this circumstance refuse absolution...there is no automatic right to absolution unless you resolve to not go on sinning..
This is not to say that an embezzler won't do it again....the nature of sin is such that even when we intend to not do wrong sometimes we do.