[Zope] Session to session id to session (_ZopeId)

Peter Bengtsson peterbe at gmail.com
Fri Oct 22 08:37:13 EDT 2004


Thank you very much Dieter.
Setting it in REQUEST.form like this on the first line:
self.REQUEST.form['_ZopeId'] = browserid
...did the trick!
Great!


On Thu, 21 Oct 2004 20:13:02 +0200, Dieter Maurer <dieter at handshake.de> wrote:
> Peter Bengtsson wrote at 2004-10-21 13:25 +0100:
> > ...
> >It appears the session_id_manager keeps generating new browser id's
> >instead of letting me reuse the one I have an id for.
> 
> You can reuse your session id provided you offer it in a way
> understood by the browser id manager.
> By default, the browser id manager looks for it in "REQUEST.form"
> and "REQUEST.cookies". It can be configured to also look in the URL.
> 
> Note that the browser id manager decides about the id very
> early in the request -- before traversal is finished.
> This essentially means that the id must already be present in
> the request itself -- you cannot provide it later (after traversal
> is complete).
> 
> If you really need to set it later, you can modify the
> "REQUEST" attribute the browser id manager stores the id in
> (look at the code to find out).
> Of course, this too is protected -- only trusted code can do it...
> 
> --
> Dieter
> 


-- 
Peter Bengtsson, http://www.peterbe.com


More information about the Zope mailing list