Hi, I don't know whether web2py has this built-in, but here's concept:
table logged_in: user_id, time "time" is time of user's last activity When user opens some page or downs a file, or just does something, then you update logged_in.time to actual time. Now, if you want to see list of logged in users in last 5 minutes, just: select user_id, time from logged_in where time>=NOW()-5minutes; It's not perfect, though, but it's HTTP legacy. Stateless protocol. Regards, Piotr. Dnia piątek 10 lipca 2009 o 14:46:28 Kuba Kucharski napisał(a): > Hi, again > > how to list all currently logged users? > > If I have to make my own boolean column like "logged_in" in the user > table how do I handle logout and expire? > > auth.settings.. ? not that easy ? > > I see "onlogout" here: > http://mdp.cti.depaul.edu/examples/static/epydoc/web2py.gluon.tools2.Auth-c >lass.html but what about handling expiry? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---