[keycloak-dev] Session Expiry & Remember Me

Alex Chatziparaskewas alex.chatziparaskewas at trapezegroup.com
Tue Jan 15 05:31:14 EST 2019


Hi All,

I am trying to get the remember me functionality running having the problem that my sessions are expired by keycloak - in my eyes - prematurely. I started digging through keycloak code and stumbled over the following:

class UserSessionPredicate, method 'test':

        ...    
        if (entity.isRememberMe()) {
            if (expiredRememberMe != null && expiredRefreshRememberMe != null && entity.getStarted() > ###expiredRefreshRememberMe### && entity.getLastSessionRefresh() > expiredRefreshRememberMe) {
                return false;
            }
        }
        else {
            if (expired != null && expiredRefresh != null && entity.getStarted() > expired && entity.getLastSessionRefresh() > expiredRefresh) {
                return false;
            }
        }
        ...    

The marked (###) 'expiredRefreshRememberMe' in the second if statement, should that not be 'expiredRememberMe'?

Thanks & Regards,
Alex






More information about the keycloak-dev mailing list