title: keep me logged in JSP page
body: <p>How do I make "keep me logged in" box in JSP page? Looks like it has something to do with the cookie, right?</p>
  
  <p>The below is my JSP code.</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  ${errorMessage}
  ${successMessage}
  Please log in.
  &lt;form action="login" method="post"&gt;
      &lt;p&gt;
      &lt;label&gt;
          id
          &lt;input type="text" name="id"/&gt;
      &lt;/label&gt;
      &lt;/p&gt;
      &lt;p&gt;
      &lt;label&gt;
          password
          &lt;input type="password" name="password"/&gt;
      &lt;/label&gt;
      &lt;/p&gt;
      &lt;p&gt;
      &lt;input type="submit" value="login"/&gt;
      &lt;/p&gt;
  &lt;-- I AM TRYING TO PUT KEEP ME LOGGIN BOX RIGHT HERE! --&gt;
  &lt;/form&gt;
  &lt;a href="getpass.jsp"&gt;Forgot password?&lt;/a&gt;
  &lt;a href="register.jsp"&gt;Don't have an account?&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I know how to make that box, but I am not sure where to go from here.</p>
  
  <p>I appreciate if someone could help me.</p>