anchor.diff:      private static final String KEY = ":cookie@qiaodan.com";
       public final static String calcMD5(String ss){
       	String s = ss==null?"":ss;
  +    	System.out.println("s:"+s);
       	char hexDigests[] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
       	try{
  +    		
       		byte[] strTemp = s.getBytes();
  +    		System.out.println("strTemp"+strTemp);
       		MessageDigest mdTemp = MessageDigest.getInstance("MD5");
       		mdTemp.update(strTemp);
       		byte[] md = mdTemp.digest();
  
positive.code: </head>
  <body>
  	<fieldset>
  		<legend><%=login?"Welcome Back!":"Please Login first!" %></legend>
  		<% if(login){ %>
  		Welcome,${cookie.account.value}.&nbsp;&nbsp;
  
negative.code:     request.setCharacterEncoding("UTF-8");
      response.setCharacterEncoding("UTF-8");
      String action = request.getParameter("action");
      System.out.println("1action:"+action);
      if("login".equals(action)){
      	String account = request.getParameter("account");
      	String password = request.getParameter("password");
      	System.out.println("2account+password:"+account+password);
      	int timeout = new Integer(request.getParameter("timeout"));
      	String ssid = calcMD5(account+KEY);
      	System.out.println("3account+KEY:"+account+KEY);
      	System.out.println("4ssid:"+ssid);
      	Cookie accountCookie = new Cookie("account",account);
      	accountCookie.setMaxAge(timeout);
      	
      	Cookie ssidCookie = new Cookie("ssid",ssid);
      	ssidCookie.setMaxAge(timeout);
      	System.out.println(ssidCookie);
      	response.addCookie(accountCookie);
      	response.addCookie(ssidCookie);
      	
  