From: Kristian K. <kr...@ko...> - 2002-12-25 09:12:04
|
Am Di 24.Dezember 2002 17:22 schrieb lrargerich: > * Image caching broken > * Edit templates may edit any file > * Problem with polls and modules not bein unassigned > from user assigned modules * mod-logged_users is broken The current mod-logged_users uses tiki_sessions to count the number of=20 sessions. This table is always empty in my tiki141. I assume this is beca= use=20 of some switch to file based PHP4 session. I like the idea of keeping a list of currently active users and their nam= es in=20 tiki_sessions. That is, some piece of code that is loaded on each and eve= ry=20 page view would "replace into tiki_sessions (sessionId, userName) values = (=20 =2E.. );" (change tiki_sessions with "alter table tiki_sessions add colum= n=20 userName varchar(...) not null") to update the tiki_sessions table. The mod-logged_users would then "select userName, timestamp from tiki_ses= sions=20 where timestamp > $cutoff". $cutoff would be a selectable parameter for t= hat=20 module, defaulting to 15*60. Kristian --=20 http://www.amazon.de/exec/obidos/wishlist/18E5SVQ5HJZXG |