[Zope] Session to session id to session (_ZopeId)
Dieter Maurer
dieter at handshake.de
Thu Oct 21 14:13:02 EDT 2004
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
More information about the Zope
mailing list