You can check the table auth_event to see if user logged in.

But you will need an extra code to ensure that user logs out.

On Mon, Jun 25, 2012 at 4:10 PM, Janath <jana...@gmail.com> wrote:

> 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
>
> --
>

-- 



Reply via email to