[Zope] Session and objects

Jens Vagelpohl jens@zope.com
Mon, 30 Sep 2002 07:57:18 -0400


well, you will not be able to directly store those connections in the 
session.

i would store them somewhere else (a tool for it in the ZODB maybe?) 
and retrieve the right connection based on a simple key you store in 
the session.

jens


On Monday, Sep 30, 2002, at 07:48 US/Eastern, Bo M. Maryniuck wrote:

> On Monday 30 September 2002 13:44, you wrote:
>> i'm not sure what you are trying to achieve here. it is always the
>> easiest to store nothing but simple python data types (strings,
>> sequences, dictionaries) in a session data container. a much better
>> solution might be to store something that acts as a "key" and lets you
>> find what you need in the real ZODB when you need it.
> Well, I would like to store a Oracle DA connection to the session, 
> because I
> need _different_ connection at the same time for different user. The 
> problem
> is to logout user, if he is just close browser (not press button 
> "Logout" or
> so). Then I want somehow hook this exception. There is no way 
> (perhaps) to do
> it with ZODB, so I need put this connection to the session and the 
> connection
> will die as soon as user closes the browser, itn't it?
>
> -- 
> Regards, Bogdan
>
> Everyone has a photographic memory. Some don't have film.
>