title: JCaptcha failed when cookie is blocked
body: <p>I have implemented JCaptcha in my web application and it works fine but when cookies of the browser is blocked it always fail and return false.</p>
  
  <p>the servlet code is as follows:</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  
  
  
          String userCaptchaResponse =request.getParameter("jcaptcha");
          boolean captchaPassed = SimpleImageCaptchaServlet.validateResponse(request, userCaptchaResponse);
  
          if(captchaPassed){
          System.out.println("success!!"+userCaptchaResponse);
          RequestDispatcher rd=request.getRequestDispatcher("Result.jsp");
          rd.forward(request, response);
  
          //response.sendRedirect("Result.jsp");
  
          }else{
              System.out.println("failure!!"+userCaptchaResponse);
              response.sendRedirect("Index.jsp"+"?id=false");
  
          }
  
      }
  </code></pre>
  
  <p>and code in jsp page is</p>
  
  <pre><code>&lt;tr align="center"&gt;
  &lt;td align="right" width="33%"&gt;&lt;img height="60px" width="140px" src="jcaptcha.jpg" /&gt;&lt;/td&gt;
  &lt;td align="left" width="33%" valign="middle"&gt;&lt;input type="text" name="jcaptcha" value="" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>I want my captcha to work irrespective of whether the cookies are blocked or not!!!
  is there any solution for this or any other method to implement captcha in java 
  I am using jdk 1.7 and tomcat 7 as runtime environment.</p>