}
else if (!session.isValid())
{
// session is marked as invalid. invalidate this session now.
httpSession.invalidate();
beanManager.fireEvent(new SessionInvalidatedEvent(session));
}
else
{
session.updateSessionValues(httpSession);
sessionStore.persist(session);