https://issues.apache.org/bugzilla/show_bug.cgi?id=40136





--- Comment #8 from Mustapha Ait-Idir <[email protected]>  2009-05-19 
12:26:16 PST ---
Hi, 

I fixed the issue by paching tomcat classes

Request.java

....
 // Creating a new session cookie based on that session
 if ((session != null) && (getContext() != null)
          && getContext().getCookies()) {
      Cookie cookie = new Cookie(Globals.SESSION_COOKIE_NAME,
                                       session.getIdInternal());
            configureSessionCookie(cookie);
            response.addCookieInternal(cookie);

             //Mustapha Path

            String[] str = session.getId().split("\\.");
            String   id  = "";
            if ( (str != null) && (str.length == 3) ){
                id  = "Y" + str[0] + "C." + str[1] + "." + str[2];
            }else if (str.length == 2 ){
                id  = "Y" + str[0] + "C." + str[1];
            }else if (str.length == 1){
                id  = "Y" + str[0] + "C";
            }else{
                id  = "Y" + session.getId() + "C";
            }
            Cookie mustCookie = new Cookie("COOKIE_BALANCER", id);
            configureSessionCookie(mustCookie, false);
            response.addCookieInternal(mustCookie);

        }
.....


and in the apache proxy balancer use the cookie maned COOKIE_BALANCER

ProxyPass balancer://tomcats/portail/ stickysession=COOKIE_BALANCER
nofailover=On

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to