title: Can I delete a HttpSession manually in a servlet?
body: <p>I took a JSP class and we learnt that we should always remove all the attributes of the HttpSession before we use it. So one of my classmate asked - "How about we delete the HttpSession permanently after we've done using it?" </p>
  
  <p>So, my question is "can a HttpSession be deleted?"</p>
  
  <p>From what I understand so far.... HttpSession is created by the servlet container, same as HttpServletRequest and HttpServletResponse. We get it through the HttpServletRequest, but we cannot delete it manully. Instead, there is timeout we can set to make the session end. Since we cannot delete it, we need to make sure we clean the session before we use it. Am I correct?</p>
  
  <p>Thanks!</p>