•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 363,804 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 617 | Replies: 3
Java Syntax (Toggle Plain Text)
public class logout extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("index.jsp"); } }
session is still alive!!!
Last edited by peter_budo : May 9th, 2008 at 6:04 pm. Reason: Keep It Organized - please use [code] tags
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
Similar Threads
- logout problem (JSP)
- Another Logout Link (DaniWeb Community Feedback)
- Creating a Robust Logout System (Perl)
- How I can deactivate backward option in jsp web pagewhen I logout as a user (JSP)
- logout problem after sessionivalidate (JSP)
Other Threads in the JSP Forum
- Previous Thread: how to send values from servlet to jsp...using ajax
- Next Thread: Can't view JSP in browser



Threaded Mode