anchor.diff:                  response.addCookie( linkcookie );
               }
   
  -            CookieAssertionLoginModule.setUserCookie( response, user );            
  +            CookieAssertionLoginModule.setUserCookie( response, author );            
  +        }
  +        else
  +        {
  +            session.removeAttribute("link");
  +            session.removeAttribute("author");
           }
   
           wiki.saveText( wikiContext, pageText.toString() );
  
positive.code:     else if( preview != null )
      {
          log.debug("Previewing "+pagereq);
          if( author == null ) author = "";
          pageContext.forward( "Preview.jsp?action=comment&author="+author );
      }
      else if( cancel != null )
      {
  
negative.code:     NDC.push( wiki.getApplicationName()+":"+pagereq );
      
      WikiSession wikiSession = wikiContext.getWikiSession(); 
      String storedUser = wikiSession.getUserPrincipal().getName();
  
      if ( wikiSession.isAnonymous() ) 
      {
          storedUser  = request.getParameter( "author" );
      }
  
      String ok      = request.getParameter("ok");
      String preview = request.getParameter("preview");
      String cancel  = request.getParameter("cancel");
      String author  = request.getParameter("author");
      String link    = request.getParameter("link");
      String remember = request.getParameter("remember");
  
      WikiPage wikipage = wikiContext.getPage();
  