InvalidateSessionTagpublic class InvalidateSessionTag extends TagSupport This class is a custom action for invalidating a session,
causing all session scope variables to be removed and the
session to be terminated (marked as invalid). |
Methods Summary |
---|
public int | doEndTag()Invalidates the session.
HttpSession session = pageContext.getSession();
if (session != null) {
session.invalidate();
}
return EVAL_PAGE;
|
|