User Name Password Register
DaniWeb IT Discussion Community
All
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
Join Date: May 2008
Posts: 2
Reputation: samlabs821 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
samlabs821's Avatar
samlabs821 samlabs821 is offline Offline
Newbie Poster

How to logout!!!

  #1  
May 9th, 2008
  1. public class logout extends HttpServlet {
  2. public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  3. process(request,response);
  4. }
  5. public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  6. process(request,response);
  7. }
  8. public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
  9. HttpSession session = request.getSession();
  10. session.invalidate();
  11. response.sendRedirect("index.jsp");
  12. }
  13. }


session is still alive!!!
Last edited by peter_budo : May 9th, 2008 at 6:04 pm. Reason: Keep It Organized - please use [code] tags
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 11:19 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC