public void sessionDestroyed(HttpSessionEvent event)
{
System.out.println("sessionDestroyed:::" + event.getSession().getId());
try
{
HttpSession session = event.getSession();
String ticket = String.valueOf(session.getAttribute(SessionListener.DS_SSO_TICKET));
if(!ticket.equals("null") && ticket.length() > 0)
{
((AuthFactoryService)dswork.spring.BeanFactory.getBean(AuthFactoryService.class)).saveLogLogout(ticket, true, false);
TicketService.removeSession(ticket);// 应该是超时
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
SessionListener.java 文件源码
java
阅读 55
收藏 0
点赞 0
评论 0
项目:dswork
作者:
评论列表
文章目录