Am Donnerstag, den 21.07.2005, 16:36 +0200 schrieb gabor:
> hi,
> 
> i need to store some data as long as the user is logged on to zope.
> how can i achieve this?
> 
> using the session is not a good idea, because some parts of the code 
> simply call session.clear()  (i did not write that part).
> 
> if everything fails, i can use a singleton where i put a dictionary 
> based on some-kind-of user-id... but i'd like to avoid that if possible 
> (don't want to think about the multi-user-asking-at-the-same-time 
> problems)..
> 
> is there any place where i could attach my data structure?
> 

Session is still the best thing you can use in this case.
Note that HTTP is stateless, you just dont know when
a user "logs out". - unless she is so friendly to use
a button on your site where you can trigger to delete
the session and auth cookie.

-- 
Tino Wildenhain <[EMAIL PROTECTED]>

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to