At London Heathrow airport, passengers connecting between two international flights can usually stay in the transit area without going through immigration.
The airport has 4 terminals or concourses (Terminal 2, Terminal 3, Terminal 4, Terminal 5). They are not connected after security: changing means going through security again.
Connecting passengers go through a transfer security screening.