Hallo all.
I found this interesting thread about how to invalidate a user session when he logs twice.
How to invalidate an user session when he logs twice with the same credentials
I have a slightly different environment but I should resolve the same problem.
The differences are that I don’t use JSF and my application is running on a cluster.
I’m willing to apply this pattern, but I was wondering where should I save the user map?
Is there a context visible to all the machines in the cluster?
Thanks in advance
The point about running the application on a cluster is more important and relevant than the absence of JSF.
The requirement imposed by the cluster on any solution is that the solution require the use of a shared storage that is accessible to all members of the cluster. There are are several possible solutions that account for this requirement: