[jboss-user] [JBoss Portal] - Re: Session timeout

KorayCetinbas do-not-reply at jboss.com
Mon Feb 23 09:11:38 EST 2009


A late reply but i think writing a wrapper for a4jfilter and setting the new filter as ajax filter in web.xml may solve your problem.

(Of course you need to refresh the last activity time, or do something else to suit your needs, after casting to httpservletrequest)


  | public class MyAjaxFilter extends Filter
  | {
  |  public void doFilter(ServletRequest req, ServletResponse res, FilterChain fc) throws IOException, ServletException {
  |       try
  |       {
  |          HttpServletRequest httpReq = ((HttpServletRequest)(req));
  |          // do what you need to do about the session variables
  |          super.doFilter(req, res, fc);
  |       }  
  |       catch (Exception exp)
  |       {
  |          
  |       }
  |    }
  | }
  | 

Hope this helps,
Koray

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4212271#4212271

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4212271



More information about the jboss-user mailing list