[Zope] Session and objects
Marius Gedminas
marius@codeworks.lt
Mon, 30 Sep 2002 13:04:55 +0200
(Please wrap your text at 72 columns, thank you)
On Mon, Sep 30, 2002 at 12:43:49PM +0200, Bogdan M.Maryniuck wrote:
> I would like to handle session events. For example: user closes browser, etc.
> Seems that is not possible, so I desire do it via the Session. But... is it possible
> to add somethin non-string'ish into the SESSION? For example, I would like add
> the an DB connecton or DB cursor or any other object.
I think you have to use pickleable objects, though I'm not 100% sure. I
had no problems at all with Python lists and ints.
> Is here some workaround or advantage?
Try storing an id instead of the object itself.
Marius Gedminas
--
Cheap, Fast, Good -- pick two.