Changes between Version 1 and Version 2 of CaseStudies
- Timestamp:
- 03/01/10 17:41:16 (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CaseStudies
v1 v2 4 4 === How to logout. === 5 5 Acornsnap makes judgement of an session's principal using property(session scope) 'acornsnap.principal'. 6 Remove it to clean an session's principal .6 Remove it to clean an session's principal in a controller's action. 7 7 {{{ 8 session.removeAttribute("acornsnap.principal"); 9 response.sendRedirect("../../index.jsp"); 8 public void logout() throws Exception{ 9 session.removeAttribute("acornsnap.principal"); 10 response.sendRedirect("../../index.jsp"); 11 } 10 12 }}}
