Long story short, a couple of years ago I started at a new company and I developed a crush on a superior.
(I do not need you to tell me that is wrong, and I am a despicable person. I know that.)
I'm not sure if it would classify as "emotional affair" because we have interacted sparsely (like 2 times of week on meetings) and only for a couple of months, but we mostly kept it professional, not really talking about personal lives. In hindsight I do think I flirted with him once. But: I avoided contact afterwards, because I realized I was down a road that I did not want to go, and I do love my husband.
I made sure he knew I was married, I made sure our next interactions were formal, and I have interacted with him like 3 times for the past 2 years. I do not entertain thoughts about this man, but its been two years and I still feel guilty, and occasionally consider maybe I should tell all of this to my husband? On the other hand, why talk about something that is non existent and that I did what I had to do, nipping it in the bud? Should I still confess?