[Zope] keeping Java Servlets session ids based on url rewriting
albert boulanger
aboulang@ldeo.columbia.edu
Sat, 9 Sep 2000 14:28:42 -0400 (EDT)
I am using the latest Zope release using ZServer directly (but will be
running under Apache....)
I need to coordinate Zope based sessions and servelet sessions. We
will be using url rewriting (I know use cookies, but we are doing
worst case planning.). As you may know the rewritten urls that the
servlet does look like http://foo/bar;$<id here>$. I need to retain
the stuff after the ;. This seems to be dropped i think in ZServer. I
was going to store the servlet sesssion id in a SQLSession object by
having the servlet do a response redirect to a dtml method to process
the id after the ;.
Will Apache frontending and setting the CGI-vars fix this issue?
A more general question, has anyone worked on the general
cross-session issues like this? I think this is consideration item for
the new session support in Zope.
Regards,
Albert Boulanger
aboulanger@vpatch.com
From Zope:
Try this
http://www.zope.org/Members/aboulang/printresponse;fffff
aboulang
form
cookies
other
AUTHENTICATION_PATH
URL0 http://www.zope.org/Members/aboulang/printresponse
TraversalRequestNameStack []
SiteRootPATH /
VirtualRootPhysicalPath ('',)
URL http://www.zope.org/Members/aboulang/printresponse
AUTHENTICATED_USER Anonymous User
SERVER_URL http://www.zope.org
URL0 http://www.zope.org/Members/aboulang/printresponse
URL1 http://www.zope.org/Members/aboulang
URL2 http://www.zope.org/Members
URL3 http://www.zope.org
BASE0 http://www.zope.org
BASE1 http://www.zope.org
BASE2 http://www.zope.org/Members
BASE3 http://www.zope.org/Members/aboulang
BASE4 http://www.zope.org/Members/aboulang/printresponse
environ
HTTP_ACCEPT_ENCODING gzip, deflate
channel.creation_time 968523573
SERVER_PROTOCOL 1.0
SERVER_PORT 1380
PATH_INFO /Members/aboulang/printresponse
HTTP_HOST www.zope.org:1380
REQUEST_METHOD GET
PATH_TRANSLATED /Members/aboulang/printresponse
SCRIPT_NAME
SERVER_SOFTWARE Zope/(unreleased version) ZServer/1.1b1
HTTP_ACCEPT_LANGUAGE en-us
REMOTE_ADDR 209.67.167.55
SERVER_NAME localhost.localdomain
GATEWAY_INTERFACE CGI/1.1
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.01; Windows 98)
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*