//delete Session
sessions.deleteSession(userID);
}
logger.debug("Setting session invalidity");
throw new nonValidSessionException("The session is invalid. It does not longer exists");
}
} //end session invalid
//look for the existing session
userSession = sessions.getUserSession(userID);
if (userSession == null) {
logger.error("User Session is not valid");
throw new nonValidSessionException("The session does not exists");
} else {
if (isSessionEnabled) {
//update the last access
int sessionTimeout =