protected void setStandardAttributes(final HttpServletRequest request, final HttpServletResponse response, final WebManager webManager)
    {
        final String csrf = StringUtils.randomString(16);
        CookieUtils.setCookie(request, response, "csrf", csrf, -1);
        request.setAttribute("csrf", csrf);

        request.setAttribute("clusteringEnabled", ClusterManager.isClusteringStarted() || ClusterManager.isClusteringStarting() );

        request.setAttribute("showName", webManager.getPageProperty("session-summary", "console.showNameColumn", 1) == 1);
        request.setAttribute("showResource", webManager.getPageProperty("session-summary", "console.showResourceColumn", 0) == 1);
        request.setAttribute("showVersion", webManager.getPageProperty("session-summary", "console.showVersionColumn", 1) == 1);
        request.setAttribute("showClusterNode", webManager.getPageProperty("session-summary", "console.showClusterNodeColumn", 1) == 1);
        request.setAttribute("showStatus", webManager.getPageProperty("session-summary", "console.showStatusColumn", 1) == 1);
        request.setAttribute("showPresence", webManager.getPageProperty("session-summary", "console.showPresenceColumn", 1) == 1);
        request.setAttribute("showRxTx", webManager.getPageProperty("session-summary", "console.showRxTxColumn", 1) == 1);
        request.setAttribute("showIp", webManager.getPageProperty("session-summary", "console.ShowIpColumn", 1) == 1);
    }
Servlet for the admin console page that configures what columns are visible on the 'client sessions' page.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/main/java/org/jivesoftware/admin/servlet/SessionSummaryConfigServlet.java