Invalidate underlying session Atmosphere

Hi,

I’m writing a Vaadin application that uses Spring beans for certain things, and am trying to get logout functionality to work. I’ve got code which should do this properly, clearing all the sessions and then redirecting the user back to root page, but I’ve run into a problem, that I can’t invalidate the underlying session, which is required when using Spring session scoped beans. I found out that this is because the invalidate method called is part of the Atmosphere class ‘FakeHttpSession’, and that the invalidate method is actually empty.

Is this a known issue? If so, does anyone know when this will be addressed?

Here’s the code I’m using:


// invalidate the underlying session (spring session)
// this does not work, the current version of atmosphere bundled with current vaadin actually uses an empty
// invalidate method, so this call actually does nothing, later versions (2.x) seem to have fixed this
// TODO: figure out a way to fix this
UI.getCurrent().getSession().getSession().invalidate();

// close the vaadin session
UI.getCurrent().getSession().close();

// close the vaadin UI (detach it)
UI.getCurrent().close();

// need to navigate back to web app root
Page.getCurrent().setLocation("/app");

(using vaadin 7.1.5, Spring 3.2.4)

Cheers for any help,
Michael

This is probably http://dev.vaadin.com/ticket/11721

Okay, so hopefully it will be addressed in Vaadin 7.2 then…