I will give a Lutheran view, in which both private & public confessions occurs with absolution. The former is done most often in private counseling sessions where inner (emotional) healing needs to occur. Although, there are also Lutheran churches that set aside time for private confession and a few even have confessional booths.
In the Augsburg Confession, the official position of the Lutheran church states:
... private absolution should be retained and not allowed to fall into
disuse.
On a typical Sunday morning, following a time of public confession, a Lutheran pastor will say the following:
As a a called & ordinated minister...I (announce) forgive you all your
sins in the name of the Father, Son & Holy Spirit.
Note that the words are not "may you be forgiven" or "we forgive you." Rather, it is an unconditional focus on the objective grace of forgiveness proclaimed through the spoken word.
In the Lutheran view of the Rite of Absolution, the pastor is acting persona Christi in proclaiming God's forgiveness. The reception of the Word of forgiveness is independent of how one feels and is not dependent on how well a person owns up to their shortcomings. Psalm 19:12 states: "Who can understand his errors?" The Lutheran Augsburg Confession states:
Our churches teach that private absolution should be retained in the
churches, although listing all sins is not necessary for Confession.
For, according to the Psalm, it is impossible. "Who can discern his
error?"
The Lutheran theologian, George Stoeckhardt, writes:
A believing Christian does not make the pulse of his faith-life the
criterion of his state of grace... The believer rather makes this
conclusion: O, how godless I still am. Out of my heart godless
thoughts continue to arise. There is no doubt but that I am a poor,
unworthy sinner. My sin is ever before me. But now God’s Word tells
me, that God has already declared godless Sinners righteous. Thus I
belong without any doubt whatsoever in the number of those whom God
justifies (St. Römerbrief, p. 185).
The focus of absolution in the Lutheran tradition is that, in confession, the penitent makes an act of contrition and the pastor acting in persona Christi announces the formula of absolution.
It's like having the charismatic gifts of healing and being prompted by the Holy Spirit to speak forth to that person in need, "be healed in the name of Jesus." This is why in the Lutheran tradition the laying on of hands often occurs at the same time as private absolution is given.
The proclaimed Word of God does the work of inner healing. In absolution there is not only an impartation of the Holy Spirit to work forgiveness, but healing gifts (including deliverance) are given as well. That is why Martin Luther said, "...where sins are forgiven, there is life and salvation as well."
Martin Luther once observed:
To be convinced in our hearts that we have forgiveness of sins and
peace with God by grace alone is the hardest thing.
Luther also writes:
Sins are forgiven in two ways: First, sin is driven out of the heart
and grace is poured in; only God does this. Second, the forgiveness of
sins is proclaimed; one man does this to another. Christ, however,
does both: He puts the Spirit into the heart and outwardly proclaims
it with words. This is a proclamation and public preaching of the
inward forgiveness.
Jesus says, "if you withhold forgiveness from any, it is withheld.” In the Lutheran tradition, if people don't want to confess their need for God's salvation, that is their problem. It's not like a pastor is saying "go to hell" to all those who don't confess. Rather, people who reject God's forgiveness self exclude themselves on their own from God's reconciling grace of having life in His presence.
Luther's little comment at the end of his exhortation to Confession in his Large Catechism defines the Rite of Confession & Absolution in terms of grace:
If you were a Christian then you ought to be happy to run more than a
hundred miles to Confession and not let yourself be urged to come. You
should rather come and compel us to give you the opportunity. For in
this matter the compusion must be the other way around: we must act
under orders, you must come into freedom. We pressure no one, but we
let ourselves be pressured, just as we let people compel us and
administer the Sacrament. (LC V. 30-31)