Fixed updating of virtual sessions and added removal of expired ones