[Zope] Persistent login
Dieter Maurer
dieter@handshake.de
Thu, 11 Jul 2002 20:18:58 +0200
Thierry Florac writes:
> > Be very careful, when you store persistent objects in any cache (a
> > session belongs to this type)!
> > ....
> Perhaps I'm wrong, but I think that ZSession keep sessions properties in
> memory, and don't store them in ZODB.
As you found out, trying to store them in ZODB results in
a "Cannot pickle" exception.
This means, you are right.
Nevertheless, when a different Zope request accesses the object
(stored in memory) that has been created by a different ZODB connection,
then all kinds of weird errors can happen.
When you do not believe me, go ahead -- until they start to occur...
Dieter