|  | @ -1,5 +1,7 @@
 | 
	
		
			
				|  |  | package com.yihu.hos.filter;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.hos.common.constants.ContextAttributes;
 | 
	
		
			
				|  |  | import com.yihu.hos.interceptor.LocalContext;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Component;
 | 
	
		
			
				|  |  | import org.springframework.web.filter.OncePerRequestFilter;
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -41,13 +43,14 @@ public class SessionOutTimeFilter extends OncePerRequestFilter {
 | 
	
		
			
				|  |  |                 || httpServletRequest.getSession().getAttribute("userInfo")==null) {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             // AJAX REQUEST PROCESS
 | 
	
		
			
				|  |  |             String attachment = LocalContext.getContext().getAttachment(ContextAttributes.TENANT_NAME);
 | 
	
		
			
				|  |  |             if ("XMLHttpRequest".equalsIgnoreCase(httpServletRequest.getHeader("X-Requested-With"))) {
 | 
	
		
			
				|  |  |                 httpServletResponse.setHeader("sessionStatus", "timeOut");
 | 
	
		
			
				|  |  |                 httpServletResponse.getWriter().print("{}");
 | 
	
		
			
				|  |  |                 httpServletResponse.sendRedirect(httpServletRequest.getContextPath() + "/logoutAction");
 | 
	
		
			
				|  |  |                 return;
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             httpServletResponse.sendRedirect(httpServletRequest.getContextPath() + "/loginPage");
 | 
	
		
			
				|  |  |             httpServletResponse.sendRedirect(httpServletRequest.getContextPath() + "/" +attachment+  "/loginPage");
 | 
	
		
			
				|  |  |             return;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         filterChain.doFilter(httpServletRequest, httpServletResponse);
 |