keeping Java Servlets session ids based on url rewriting
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, */*
albert boulanger wrote:
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.
Would Zope Servlet interaction be useful to you? if so in what form? I'm going to start working next weekend on Zope calls into JServ. I'd like to get some requirements from interested parties before i start coding. Cheers Kapil
Hi, Kapil Thangavelu wrote: *snip*
I'm going to start working next weekend on Zope calls into JServ. I'd like to get some requirements from interested parties before i start coding. Oh nice! I've done the jserv part of the german apache book. So if I could help...
Regards Tino
participants (3)
-
albert boulanger -
Kapil Thangavelu -
Tino Wildenhain