I recently travelled to the UK via Heathrow to join a university course. At the UK border, I was repeatedly questioned by the officer if I was previously refused a UK visa, to which I answered no. I asked if what the issue was and he told me "there's a problem with my previous visa" and implied that I wasn't being honest with him.
He then left his counter and entered a back room, presumably to check my records in detail. I waited for 10 minutes before he came back. Thankfully I was granted entry, and the only explanation I got from him for the delay and the questioning was that someone else with the same name as me was previously refused a UK visa, so he has the right to make further checks.
The experience left me pretty flustered and upset. Why am I being penalised for someone else's problem? There are so many people sharing the same names and surely he can differentiate them with passport number, date of birth, photo etc?
Am I going to experience this all the time at the UK border now? Is there a way to make sure this doesn't happen in the future?