As far as I know, your need is to allow at most one session for each user;
hence, your original goal was to "handle the Browser Close Event in Notify Session Close Event",
but, being that impractical, you agreed on a different policy, that is, forcing termination of a user session if the same user should start a new session from another page.
Sticking to the simplest case, i.e. that you are running a single Server instance, this means that your Metadata Adapter has to
- keep track of the active sessions, by hooking session starting and termination in notifyNewSessionand notifySessionClose ;
- detect, in notifyNewSession, when the user is opening a session S2 while another session S1 is currently active and, in that case, forcing termination of S1.
If you are in this simple single-instance case and you have followed the suggestions in thread
http://www.lightstreamer.com/vb/showthread.php?t=683, point
A), then you must be using the
ConflictingSessionException technique; may you please confirm this?
In this case, I confirm that using the "kill session" mechanism is not needed;
it would be needed only if multiple Server instances were involved.