Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to catch session timeout

    This is my application environment :
    1) Java 1.5, Smart GWT 2.1, GWT 2.0.3
    2) All data sources are JSON RestDataSources.

    We are trying to catch the callback for the session timeout on server side. We override the methods in RestDataSource but none of the methods in RestDataSource is called on this scenario.

    Is there any specific way to catch the server session timeout?

    #2
    Yes - read the Relogin overview in the SmartClient Reference.

    Comment


      #3
      I added the loginRequiredMarker to my login.jsp page which is in isomorphic/login/loginRequiredMarker.html. But the registered LoginRequiredCallback hasn't been called.

      We are using standard FORM based authentication in the web application. So once the session timeout occurred, Servelet container response the login.jsp for subsequent requests coming from the Browser.

      Therefore, when user perform a server side call, ListGrid shows "Loading data....". This is the error message give in the GWT devmode console.

      00:09:35.560 [ERROR] 17:03:38.781:XRP4:WARN:RestDataSource:isc_SwitchlistDS_0:Error evaluating JSON: SyntaxError: syntax error, JSON text:

      Comment


        #4
        This indicates that the loginRequiredMarker was either not really added or was added incorrectly. Look it over carefully, maybe you trimmed off a character as you cut and pasted it, or made a similar small error.

        Comment


          #5
          Hello, ask smartclient8.2how to realize relogin. and must use LoginDialog to achieve? I am not very familiar with it. So I hope you can give me a complete example. Thank you

          My e-mail address: tangdu0228yes@163.com

          Comment

          Working...
          X