1 Reply Latest reply on Feb 23, 2009 9:11 AM by Koray Cetinbas

    Session timeout

    Andrey Zinovyev Newbie

      I am using JBoss Portal 2.6.1 GA and Richfaces 3.2.1.
      I have few portlets in differrent WAR's.
      When user works in one portlet, server receives only ajax requests (from richfaces).
      When user is working in one portlet for long time (more than session timeout defined in portal-server.war), portal session timeout, invalidated and user becomes logged out. I think it happens because all richfaces requests goes throw servlet in portal war. In fact while user doesn't change portlet/tab, he works with war application(faces and richfaces servlets), but not with portal. And portlal 'thinks' that user doesn't acts anymore and invalidate session (-> logout user).
      Maybe somebody can help me with this problem...

        • 1. Re: Session timeout
          Koray Cetinbas Newbie

          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 {
           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,