Hi,
But i see sessionCookiePath, sessionCookieName and sessionCookieDomain
configures, what is those used for?
And apache says they just don't recommend to add context into server.xml,
besides, xml files can be putted into conf\Catalina\localhost

Joshua

On Fri, Jan 16, 2015 at 11:24 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Joshua,
>
> On 1/15/15 9:00 PM, Joshua Wang wrote:
> > I'm using tomcat 6, and i have an application deployed into webapps
> > and re-named ROOT, so users can visit using http://ip:8080/. But i
> > need to configure that when users input http://ip:8080/portal.do
> > and http://ip:8080/csmis also can visit the same site. So i added
> > <Context> into server.xml like below: <Context  path="/portal.do"
> > docBase="ROOT"></Context> <Context  path="/csmis"
> > docBase="ROOT"></Context>
>
> You should not configure web applications in server.xml. Instead,
> deploy them properly:
>
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Defining_a_context
>
> > And it does work, but there's also a problem. When user input
> > http://ip:8080/portal.do visit the site and login, the Root path
> > can not get the session. In other words, he was asked to re-login
> > when he open some page from portal.do such as
> > http://ip:8080/a.jsp. Is there anything i can solve this?
>
> No. Even with single-sign-on, all web applications have separate
> HttpSessions. If you want to share state between them, you'll need to
> implement something yourself.
>
> Suggestions: RDBMS, memcached, etc.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUuIR1AAoJEBzwKT+lPKRYPCQP/1BWAFaETpQhafukSI2tjHl4
> Ke5ab46WKurVgqWGmnM+/kGq+QfDs3+y15qKIHnTZUyZCsctedJtFS5btxJI8NTY
> ef32w+dfK1+vSY7YLrYV6gzIaBVTnm20dC90eFf9JJ1xYcU5oLUzVL2rMtt7r+zc
> ytYpxoygRp37T+NownZA2NTfmzBSw6et7pwE5+ruSPORuDBuxeVZbDaHBRZKllzf
> a6iTfZdnPZUg5wdGPDeNePGFdJhcK+7e4GJuJRqCXmvlHg/ZX4x2hBlvdukhBl6S
> wcHVz6lLN6sgsspBGIGfJdRznUMR5tiKPnvNP7ONii+HI9g7615GFJJoytp3lzZM
> Y1smofyidPxYIVxsJwgiGdOf7MORv8tvBi6TY7qDnXAZr0MSN9W5UgG0ymRBT0/L
> VoeF/Zu5opFR7+bh3mjb7CzfTz9qYkYgaqeohjWUxbo/4H8e7foUBTWiZm7YoQWt
> /em2R4W0a2sCNmzxVtmCPAyE170FxHw28mdDvbPzGpcJg29yaVrg1W1HfrcAYuZT
> 0j5FriK4d5w5JZfaj8yjZ5dU736SDFhB06KzqUUooeQPBKjkxoawOXm8ZtFXQqrF
> kN6vCRbRoz70Uw6jNVKyyaS/MJgmsUW16I8w+bFZ/6v+ZltYFXVDmUx/HqdeYbZo
> fbNtMqa7thiSalxKmIfk
> =MBca
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to