Hi, The web2py application I work on uses an API to automate another application. Only one instance of that application is allowed to initialise. therefore, at the time of login to web2py, I need to check if someone is already logged in. If so I can notify the other to wait.
I thought of writing a record to a table and check that at the time of log in. But if the user closes the particular tab without logging out, I wont get the chance to modify the said table. Further, I also need to limit concurrent sessions, even for the the logged user, as it might end up the same situation in my context. Workarounds appreciated! Janath --

