I am using JDBCRealm Authentication, but the relogin-window is not appearing when the session expires, so I am investigating what is the problem.
I use the method explained here:
https://isomorphic.atlassian.net/wik...mcat+JDBCRealm
In the documentation (http://www.smartclient.com/smartgwt/...s/Relogin.html) I read:
Which code exactly is redirecting the user to a login page when the session is timed out?
This one in web.xml?
If yes, I don't know what is missing in my code. I also have
But this method is not being called when the session is timed out.
I use the method explained here:
https://isomorphic.atlassian.net/wik...mcat+JDBCRealm
In the documentation (http://www.smartclient.com/smartgwt/...s/Relogin.html) I read:
Code:
If your authentication system will redirect to a login page when a user's session is timed out, it's sufficient to simply embed the loginRequiredMarker in the login page.This one in web.xml?
Code:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>User Auth</realm-name>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/error.html</form-error-page>
</form-login-config>
</login-config>Code:
RPCManager.setLoginRequiredCallback(new LoginRequiredCallback() {
@Override
public void loginRequired(int transactionNum, RPCRequest request,
RPCResponse response) {
}
});