Session Expired after reinitializeSession

Why does ‘Session Expired’ message occassionally appear after I login?

when the user is successfully authenticated, I call

UI.getCurrent().getNavigator().navigateTo(MainView.NAME, MainView.class);
VaadinService.reinitializeSession(VaadinService.getCurrentRequest());

I use Vaadin version 7.1.12