title: Generate a new session Id
body: <p>How to generate new session id with out extends HttpServlet class. Is it mandatory to extend HttpServlet class &amp; Is it mandatory to genarate new session id with in doGet method</p>
  
  <pre><code>public class LoginSupport extends ActionSupport {
  
      public void prepare() {
          HttpSession session = ServletActionContext.getRequest().getSession();
          session.invalidate();
          //How to genarate new session id
      }
  }
  </code></pre>