On Fri, 13 Dec 2002, [EMAIL PROTECTED] wrote:
> Date: Fri, 13 Dec 2002 23:10:54 -0800 > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: Sharing session between contexts > > Hello all, > > I was hoping to be able to share sessions between virtual hosts using the coyote >connector, but it looks at though the best I can hope for is to be able to share >sessions between contexts on one host (outside of handling any virtual stuff with a >different web connector). > > No joy trying to get session sharing to work though... crossContext looks like it >may be the answer, but I've no idea how to get it to work. My current server.xml >looks like this: > > <Host name="localhost" debug="0" appBase="F:\Projects\Test21\one\" >unpackWARs="true"> > > <Context cookies="true" path="/one" docBase="F:\Projects\Test21\one\" >debug="0" reloadable="true" crossContext="true"/> > > <Context cookies="true" path="/two" docBase="F:\Projects\Test21\two\" >debug="0" reloadable="true" crossContext="true"/> > > </Host> > > and I have a servlet in each context that just outputs a session Id. How can I get >the same session going from one context to the other? You can't -- it would violate the servlet spec. Sessions are scoped to a particular web application. > > > Thanks in advance. > > > TSF Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
