http://localhost:8080/manager/html
我logoff之后去 tomcat得管理界面 发现session数没有减少。。为什么?
需要如何logoff使得tomcat可以释放session? 谢谢
[code="java"]public class LogOff extends BaseAction {
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
try {
request.getSession().removeAttribute("USER");
return mapping.findForward("forward");
} catch (Exception ex) {
ActionForward err = mapping.findForward("error");
return err;
}
}
}[/code]