6 Replies Latest reply on Jun 15, 2009 11:32 PM by twalex

    How can I refresh portal session?

    paterczm

      Hello

      I have an ajax application deployed as a portlet. The annoying thing is, that the user can get logged out while using it, because the page isn't reloaded and session timeout is reached.

      Is there a way to force session refresh, so the session timeout counter gets reset?

      Thanks and regards
      Marek

        • 1. Re: How can I refresh portal session?
          cybershastri2000

          Yea. Even I have this problem. If any one has a solution please let us know.

          • 2. Re: How can I refresh portal session?

            So you mean that if the user spends too much time using the ajax application it is logged out from the portal but this is not reflected (obviously).

            • 3. Re: How can I refresh portal session?
              paterczm

              Yes, this is exactly what I mean. Too much time is 15 minutes by default.

              So far I came up with 2 solutions, both not satisfying:

              1. Rise session-timeout value in web.xml located in ...deploy/portal-server.war/WEB-INF (application level setting doesn't seem to work for portal). This makes the problem less annoying.
              2. Make ajax calls in the background to some portal page once in a while (user will not get logged out as long as the page is open - not tested, just an idea)



              • 4. Re: How can I refresh portal session?

                another option would be that you setup a servlet in portal-server.war that makes a include of your real ajax servlet in your war file.

                that would keep the portal session alive.

                • 5. Re: How can I refresh portal session?
                  ameo

                   

                  "julien@jboss.com" wrote:
                  another option would be that you setup a servlet in portal-server.war that makes a include of your real ajax servlet in your war file.

                  that would keep the portal session alive.


                  Could you please descripte this a little more ?

                  • 6. Re: How can I refresh portal session?

                    I guess julien means you put the jar file that includes all your ajax servelt into the lib folder of portal-server.war?

                    "ameo" wrote:
                    "julien@jboss.com" wrote:
                    another option would be that you setup a servlet in portal-server.war that makes a include of your real ajax servlet in your war file.

                    that would keep the portal session alive.


                    Could you please descripte this a little more ?