Hi Everyone, I've got a Zope application where users have to authenticate themselves to be able to view certain pages. Now I want to count the logins per zope-user (disregarding the actual user-request identified by their ip-addresses). Can this be done? -- Stephan
Stephan Herschel wrote at 2003-3-6 13:09 +0100:
I've got a Zope application where users have to authenticate themselves to be able to view certain pages. Now I want to count the logins per zope-user (disregarding the actual user-request identified by their ip-addresses). Can this be done?
Yes, and, of course, there all lots of options: * use a relational database table, indexed by user id (maybe ip-address) to count logins * use a file per user on the file system to count logins * use a small persistent object per user to count logins. Note that each login will write this object to the ZODB. Therefore, you place it either on a non-undoable storage or ensure, it is really small. Dieter
Dieter Maurer wrote:
* use a small persistent object per user to count logins. Note that each login will write this object to the ZODB. Therefore, you place it either on a non-undoable storage or ensure, it is really small.
...it had also better support application-level conflict resolution. cheers, Chris
participants (3)
-
Chris Withers -
Dieter Maurer -
Stephan Herschel