posted 13 years ago
Hey,
Do you use any kind of Security framework? I know you can set Spring Security to do this in its configuration.
If not then as Chinna said, create a map of users to session IDs. If a user logs in and is already in the map, then invalidate the previous session and add their new one, otherwise add them to the map.
Sean