Managing Concurrent Users in Apex
486600Jan 29 2010 — edited Mar 19 2010Hi,
We are wanting to manage the number of concurrent users allowed to log into our apex application at any point in time. The main hurdle we have come across is that we can't find a way to logout a users session if they close the browser without clicking the logout link.
We have found a javascript event onbeforeunload, but this appears to fire regardless of whether the browser is being closed or redirected to another page or refreshed etc.
We cant wait for a defined period of time for the session to expire, it must be near instantaneous.
Does anybody know of any ways that this can be acheived?
Thanks