Spring Security

We are using spring security with max sessions set to 1.

If 2 users login, then the 1 user’s session will be destroyed. When this happens if the first user refreshes their page we serve up our login.jsp but that makes gwt throw a communication error because it wasn’t expecting the html for our login page.

Any thoughts on how we could avoid the communication error?