It is set for the rest of the match. If you support a friend and leave, you will still support that friend. You cannot support one team, leave, then support the other team.

Basically, as soon as a team receives a possession bonus (stadium, managers, supporters), that possession bonus will stay with them for the rest of the match, regardless of managers or supporters leaving or rejoining.