anchor.diff:      }
       else if( clear != null )
       {
  +        mgr.logout( session );
           Cookie prefs = new Cookie( WikiEngine.PREFS_COOKIE_NAME, "" );
           prefs.setMaxAge( 0 );
           response.addCookie( prefs );
  
positive.code: 
      if( ok != null || "save".equals(request.getParameter("action")) )
      {
          String name = wiki.safeGetParameter( request, "username" );
  
          UserProfile profile = new UserProfile();
          profile.setName( TranslatorReader.cleanLink(name) );
  
          Cookie prefs = new Cookie( WikiEngine.PREFS_COOKIE_NAME, 
                                     profile.getStringRepresentation() );
          prefs.setMaxAge( 1001*24*60*60 ); // 1001 days is default.
  
negative.code: <%@ page import="org.apache.log4j.*" %>
  <%@ page import="com.ecyrd.jspwiki.*" %>
  <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  <%@ page import="com.ecyrd.jspwiki.auth.UserProfile" %>
  <%@ page import="com.ecyrd.jspwiki.auth.UserManager" %>
  <%@ page errorPage="/Error.jsp" %>
  <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
  
  