I haven't seen that behavior, but it definitely sounds like a bug. I believe 
the visit tracking code is in turbogears/visit/api.py and 
turbogears/identity/visit.py. The code is pretty straightforward - if you don't 
get an answer from someone,  I suggest taking a quick read of that code and 
adding some print statements to see what's going on.

Barry

----- Original Message ----
From: Alexandre da Silva <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, January 19, 2008 10:35:48 PM
Subject: [TurboGears] Re: connected users




Em Sáb, 2008-01-19 às 15:33 -0800, Barry Hart escreveu:
> 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.
> 
as I've said, "almost" works.
the behavior is the follow:
when I change the expiry or delete the record (does not matter what
 way)
if the connected user simply click in another link in application, his
connection will became close, however if user just press F5 to refresh
current page, the TG engine recreate the visit key at database and user
will continue logged in. is very strange, but this issue is what is
happening. maybe it can be considered a "bug" in TurboGears, because (I
have no tested) it can also occurs when session really expires.
may some TG core developer check this issue?

thanks for replies.


Att

-- 
Alexandre da Silva
Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007)









      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to