You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Kieu Huu Dung <ki...@yahoo.com> on 2005/01/09 22:57:08 UTC
filter and session in differents webapps
Hi everyone,
We have a web site using Tomat 5.0.28, and about 10
webapps (developped by different programmers).
I'm in webmaster role, want to use a filter for all
these webapps. In my filter, I want to retrieve the
session object, code is like following :
HttpServletRequest hrequest = (HttpServletRequest)
request; // request is ServletRequest
HttpSession session = hrequest.getSession(); // 2
String sessionId = session.getId(); //3
The problem is after line 2 for each webapp, another
session object is created. So I can share infos about
session between many webapps.
(The sessionID returned from line 3, is diffrent in
different webapps
Our site use Realm with MySQL db for authentication).
Now I would like all my webapps work with only one
session object, but I can't configure it (sessionID is
the same, attributes are also the same)
Any idea is welcome.
Thanks,
KIEU.
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org