i'd like to do some brain picking with regards to zope and session currently, i'm enabling session on all pages by using script python [1]. it works ok, but is that the right way of doing it? and i sometimes get keyerror[2] also, when enabling sessions, can i get to the data stored in transient object so that i can, say, see how many people are currently in session, etc, etc. what i'm doing now is storing some of this stuff in postgresql, which is wrong, i think. thanks for all input --[1]script python--- session = context.REQUEST.SESSION browsermgr = session.getBrowserIdManager() r=context.REQUEST if session.getBrowserIdManager().isBrowserIdNew(): session.set(browsermgr.getBrowserIdName(),browsermgr.getBrowserId()) r.set(browsermgr.getBrowserIdName(),browsermgr.getBrowserId()) context.q_add_user_session(context, r)#update postgresql to get who's in session else: if _.SecurityGetUser().getUserName() != 'Anonymous User': r.set(browsermgr.getBrowserIdName(),browsermgr.getBrowserId()) context.q_update_user_session(context, r)#update postgresql to get who's in session --keyerror [2] (Object: session_data) KeyError: duplicate key 08694963A0YdxjlmPiI -- -- http://www.kedai.com.my/ http://www.kedai.com.my/eZine http://www.zope.org/Members/kedai http://www.my-zope.org How can I laugh tomorrow, if i can't even smile today.