With Cart confirmation, do you mean sales order confirmation after placing it? It seems a bug on the core, when the session times out, you are 'recognize' and probably it only changes after you actually logged in with another credentials but not when guest checkout, why? I'm not sure but it uses different service for logged in users and guest checkout, so it might be the reason, the guest checkout is not clearing or handling correctly the session.
However, it is a really weird scenario in which a previously logged in user is going to then use guest checkout. Do your customers use this for a particular reason? Guest checkout is for first time and single time purchase.