Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Relogin problems

$
0
0
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:
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.
Which code exactly is redirecting the user to a login page when the session is timed out?
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>

If yes, I don't know what is missing in my code. I also have
Code:

RPCManager.setLoginRequiredCallback(new LoginRequiredCallback() {

                        @Override
                        public void loginRequired(int transactionNum, RPCRequest request,
                                        RPCResponse response) {
                               
                        }
                });

But this method is not being called when the session is timed out.

Viewing all articles
Browse latest Browse all 4756

Trending Articles