Ian Beatty wrote:
On 2004-03-31 5:42 PM, [EMAIL PROTECTED] is reputed to have said:

Do you use this unique ID only as some kind of session ID?

Yes, exactly.

If you only
need these IDs during a session (don't have to store them in ZODB), you
can create a thread safe class for managing them and then use an instant
of this class as a module global variable in your product.
AFAIR, this is the way how exUserFolder implements it's usercache. You
can get a clue by examining these files...

I'll check them out. Thanks.

The root folder of your Zope probably already has an object called 'browser_id_manager' whose job it is to generate such IDs cheaply; I would recommend using it, instead.

Tres Seaver                                [EMAIL PROTECTED]
Zope Corporation      "Zope Dealers"       http://www.zope.com

Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to