
Originally Posted by
xkolr03
Although this can be fixed by adding an authentication listener, there is another problem: The session registry doesn't survive Tomcat server restart, while the actual sessions do. And another drawback is that the session registry doesn't work in a cluster, it will only hold sessions of a particular server, but the user can have the session in a different server in a cluster. With all I mentioned, it seems that it would be quite difficult to keep the session registry in sync with actual sessions.
Is there a way of somehow configuring Spring Security to check a user existence (and also whether the user is enabled) with each authenticated request? And if there is, what would be the impact of it on performance?
Thanks,
Radim