Announcement

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

    Session Expired - Redirect to Login Page Issue

    SmartGWT 2.5 Used

    Hi, we use smartgwt 2.5 for our webapp. As the user have login our page and the session expire, we hope webpage can redirect the user to login page again.

    I try the following in the EntryPoint inside onModuleLoad( ) and hope the callback function will call if the session expired. However, the callback is not called. Would you please suggest more on using this. Thanks for your help

    Code:
    import com.smartgwt.client.rpc.LoginRequiredCallback;
    
    RPCManager.setLoginRequiredCallback(new LoginRequiredCallback(){
    	@Override
    	public void loginRequired(int transactionNum, RPCRequest request, RPCResponse response) {
    	System.out.println("### Session Expire  ###");
    	}
    });

    #2
    See the QuickStart section on Relogin - you need to add the LoginRequiredMarker to the response the browser will receive on session timeout. This is what triggers the LoginRequired handler.

    Comment

    Working...
    X