Vaadin session with Long-Term Persistent Authentication

Hi erverybody,

i´m trying to accomplish a long persitent authentication (Remember me) function.
So what i do have is a service which is runing fine to store session information in DB with hashed tokens etc.
Also storing and reading cookies is working fine.

I´m using navigator with some view sand an login view.
So at the moment i`m using afterViewChange to be able to check if the session is stil there.

    public void afterViewChange(ViewChangeEvent event) {
        if (!navigator.getState().equals(LoginView.class.getSimpleName())) {
            if (loginService.checkSession()) {
                System.out.println("Session ok");
            } else {
                System.out.println("Session NOK");

My problem is, is there another way to override an function to get noticed about user interaction, like the Vaadin Session Messages ?

Thanks in advance