奇怪的session混亂問題

chunfengxixi發表於2007-09-26

伺服器:jboss4.2
問題:偶爾兩個帳號在兩臺不同的機器上,a帳戶獲取了b帳號的session值
public ActionForward loadDialogList4Inbox(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)throws Exception{
MailService service = (MailService)this.getBean("mailService");
List labels = (List)request.getSession().getAttribute("labels");
if(labels == null){
labels = service.loadLabelWithTotal(this.getUserId());
request.getSession().setAttribute("labels",labels);
}
return mapping.findForward("dialogList");
}

相關文章