title: JSP hit counter with cookies
body: <p>Im working on a school project, that contains a hit counter with using cookies. I used to make counters just passing an incrementing value into variables in beans at every refresh, but I've been told, that this is bad solution. 
  The specifications for this tasks are clear :</p>
  
  <ul>
  <li>create a hit counter</li>
  <li>use a cookie to do this</li>
  <li>set expiration date of cookie</li>
  </ul>
  
  <p>Is there somebody with a solution ? Im getting pretty clueless about it..</p>
  
  <p>Thanks for each helpful answer.</p>