int sessionTimeout = setupSessionTimeout(session);
// adding the user user the list of online users
token.setLastRequestTime(new Date());
OnlineUserManager manager = OnlineUserManager.getInstance();
manager.addOnlineUser(token, sessionTimeout);
//sCtx.setAttribute("onlineusers", manager.getOnlineUsers(sessionTimeout));
setServletContextObject(request, "onlineusers", manager.getOnlineUsers(sessionTimeout));
session.setAttribute(BaseConstants.IS_ONLINE, BaseConstants.BOOLEAN_YES);
session.setAttribute(BaseConstants.IS_ADMIN, token.getIsAdmin());