Ok, I see how you interpreted what I said now - it seemed like I was only talking about changing behaviour without thinking about the reasons and things behind it. Try this instead of what I said before:
What about having your therapist record an audio flashcard, using words that she usually says in session that you like or feel reassured by. And when you start feeling like you want to search for her online, you listen to the recording, and see if it makes you feel better. Maybe you do end up continuing to look her up or maybe you don't, but even if you do you might feel better in total afterwards because you've had two kinds of connection instead of just one.