Explain session destroy in Servlets



Question: How you can destroy the session in Servlet?
Answer:
You can call invalidate() method on the session object to destroy the session. e.g. session.invalidate();

Random Posts

  • Define Session Migration
  • Thread example for Runnable Interface
  • When the port number is changed
  • Define Session
  • Define Precompile of Jsp page

Post a Comment