This content has been marked as final.
Show 1 reply
-
1. Re: Session timeout
koraycetinbas Feb 23, 2009 9:11 AM (in response to zvezdochet)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