Changes between Version 1 and Version 2 of CaseStudies

Show
Ignore:
Timestamp:
03/01/10 17:41:16 (6 months ago)
Author:
yosei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CaseStudies

    v1 v2  
    44=== How to logout. === 
    55Acornsnap makes judgement of an session's principal using property(session scope) 'acornsnap.principal'. 
    6 Remove it to clean an session's principal. 
     6Remove it to clean an session's principal in a controller's action. 
    77{{{ 
    8 session.removeAttribute("acornsnap.principal"); 
    9 response.sendRedirect("../../index.jsp"); 
     8public void logout() throws Exception{ 
     9  session.removeAttribute("acornsnap.principal"); 
     10  response.sendRedirect("../../index.jsp"); 
     11} 
    1012}}}