Hello,

I am using qooxdoo v0.8.2
I need to refresh session after logout. To achieve this I am using
Rpc.refreshSession() method.
However, it seems that this method is not working. I copied few lines of
from method refreshSession().
    refreshSession : function(handler)
    {
      if (this.getCrossDomain())
      {
        if (qx.core.ServerSettings &&
            qx.core.ServerSettings.serverPathSuffix)
        {
          var timeDiff =
            (new Date()).getTime() -
qx.core.ServerSettings.lastSessionRefresh;
................................
................................
        }
        else
        {
                  handler(false); // no refresh possible, but would be
necessary
        }
      }
      else
      {
              handler(true); // session refresh was OK (in this case: not
needed)
      }
    }


As per the code the method refreshSession() refreshes session only if the
method getCrossDomain() returns true. In most cases we will not have cross
domain calls so is the case with my application.

How can I refresh session without setting attribute crossDomain to true?

As a work around I am explicitly calling remote method "refreshSession" just
like any other remote method using Rpc.callSync() method and execute the
function returned by the method. It works as expected.

PS: Even after setting crossDomain to true, my session is not getting
refreshed.

Thanks,
Chirag
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to