When are the tables USER_SESSION AND USERNAME_LOGIN_FAILURE populated?

Hi everyone.

Do you know when the tables USER_SESSION and USERNAME_LOGIN_FAILURE populated? It seems that is not when there are active sessions or failed attempts to log in. Is it something that need to be enabled by configuration maybe?