Posts Tagged ‘websphere’

WebSphere Application Server: Implement different Logout technique

WebSphere Application Server: Implement different Logout technique
Implementing Logout functionality in a form based authentication in J2EE website is straight forward. The session needs to be invalidated by calling request.getSession().invalidate() method. Thus in a simple servlet following code will be the code for logout:public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.getSession().invalidate(); response.sendRedirect("/sampleapplication/index.jsp"); }This is simple way for implementing logout. There is also another, ...
Copyright © 2012 ViralPatel.net. All rights reserved.