//Understanding sessions..
HttpSession session = request.getSession (true);
if (session.isNew() == false) {
session.invalidate();
session = request.getSession(true);
}
if (session.isNew() == false) {
session.invalidate();
session = request.getSession(true);
}