[web2py] limit to one logged user (and a single active session)

2012-06-25 Thread Janath
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

Re: [web2py] limit to one logged user (and a single active session)

2012-06-25 Thread Bruno Rocha
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

Re: [web2py] limit to one logged user (and a single active session)

2012-06-25 Thread Janath
do you thin I can trigger an event when the session expires On Monday, June 25, 2012 2:13:23 PM UTC-5, rochacbruno wrote: 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