package com.util;
import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 * 检测用户是否登录超时
 * @author dubaohui
 * */	
public class Check extends HttpServlet implements Filter {
	

public void destroy() {
		
	}

	public void doFilter(ServletRequest srequest, ServletResponse sresponse,
			FilterChain filterChain) throws IOException, ServletException {
		 HttpServletRequest request = (HttpServletRequest)srequest;
		    HttpServletResponse response = (HttpServletResponse)sresponse;
//		    Tblsysuser dto =SessionUser.getsession(request);
//		    if (dto == null)
//		    {
//		         System.out.println("****************检测到用户Session已经消失****************");
//		         String flgvalue = Escape.escape(Configmessage.checkloginflg(3));
//		         response.sendRedirect(request.getContextPath()+"/login.jsp?loginlog="+flgvalue+"");
//		    }else{
//		    	 filterChain.doFilter(srequest, sresponse);
//		    }
	}

	public void init(FilterConfig arg0) throws ServletException {
	}

}
