[jboss-dev-forums] [Design of JBoss/Tomcat Integration] - Connector.getEmptySessionPath dropped
scott.stark@jboss.org
do-not-reply at jboss.com
Wed Oct 24 15:45:03 EDT 2007
Another compile error in the org.jboss.web.tomcat.service.session.JBossManager implementation of the org.apache.catalina.Manager interface is due to the org.apache.catalina.connector.Connector dropping the getEmptySessionPath method. This was being used in the session cookie creation:
| public void setNewSessionCookie(String sessionId, HttpServletResponse response)
| {
| if (response != null)
| {
| Context context = (Context) container_;
| Connector connector = ((Response)response).getConnector();
| if (context.getCookies())
| {
| // set a new session cookie
| Cookie newCookie = new Cookie(Globals.SESSION_COOKIE_NAME, sessionId);
| if (log_.isTraceEnabled())
| {
| log_.trace("Setting cookie with session id:" + sessionId + " & name:" + Globals.SESSION_COOKIE_NAME);
| }
|
| String contextPath = null;
| if (!connector.getEmptySessionPath() && (context != null)) {
| contextPath = context.getEncodedPath();
| }
|
| if ((contextPath != null) && (contextPath.length() > 0)) {
| newCookie.setPath(contextPath);
| } else {
| newCookie.setPath("/");
| }
|
What replaces this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098514#4098514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098514
More information about the jboss-dev-forums
mailing list