title: login , remember me, application using java servlet and jsp
body: <p>I'm trying to implement a login(remember me) application, and i'm having a problem to manage the cookies. when i'm doing Register(for new members) or login(for members that already have been registered) i'm doing in the server:</p>
  
  <pre><code>Cookie returnVisitorCookie = new Cookie("repeatVisitor", "yes");
  returnVisitorCookie.setMaxAge(60*60*24*365); // 1 year
  response.addCookie(returnVisitorCookie);
  </code></pre>
  
  <p>where the response i'm getting from the browser. for example : visitor.login(response).</p>
  
  <p>When i'm doing SIGNOUT, i'm deleting the cookie. but it's seems that i have more cookies 
  that it should be, i mean if i registered 2 members and signout, i still have cookies with name = "repeatVisitor" and value = "yes". </p>
  
  <p>Maybe because i'm putting the cookie in different respones.</p>
  
  <p>Anybody can give me an idae what i'm doing wrong and how should i implement this?
  Thank you</p>