public void attributeAdded(HttpSessionBindingEvent evt) {
if (evt.getName().equals(IConst.SESSION.USER_KEY)) {
HttpSession session = evt.getSession();
cleanUpPermissions(session);
ServletContext app = session.getServletContext();
ForumDAO forumdao = ForumDAO.getInstance();
User user = (User) evt.getSession().getAttribute(
IConst.SESSION.USER_KEY);
try {
savePermissionGuard(session);
if (user.getStatus() > 0) {
forumdao.removeEntry(user.getName());
}
forumdao.addEntry(getCurrentEntry(evt));
//write message in forum log
JGossipLog.audit(LogLevel.INFO, user, ((MessageResources) app
.getAttribute(Globals.MESSAGES_KEY
+ Configurator.getInstance().get(