| Version 2 (modified by yosei, 6 months ago) |
|---|
Case Studies
How to logout.
Acornsnap makes judgement of an session's principal using property(session scope) 'acornsnap.principal'. Remove it to clean an session's principal in a controller's action.
public void logout() throws Exception{
session.removeAttribute("acornsnap.principal");
response.sendRedirect("../../index.jsp");
}
