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
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 ###");
}
});
Comment