Although in my example I showed straight SQL, in practice, you should use SQLObject or SQLAlchemy against the Visit class to manipulate visit objects. You can use all the normal features of these libraries to query or manipulate visit records. If you want to drop a session, your approach of changing the expiry is fine. I suppose you could also simply delete the record.
Barry ----- Original Message ---- From: Alexandre da Silva <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, January 18, 2008 2:46:07 PM Subject: [TurboGears] Re: connected users Em Sex, 2008-01-18 às 11:08 -0800, Barry Hart escreveu: > A SQL query like this one will tell you all the currently unexpired > cookies, and includes a user name column: > > select * from tg_lb_visit where expiry >= now() > yes, is something like this I am doing and is working "almost" properly I just ask to know if turbogears kernel have some function to get this list. I am trying to drop a user session by updating his expiry to a now - 5 minutes, is "almost" working, I am having little problems yet, I think related to cookie., is there a way to invalidate/expire the client cookie, forcing browser to start a new one? -- Alexandre da Silva Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007) ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

