httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40136] bug releted to loadbalancing using mod_proxy, mod_proxy_balancer and mod_proxy_ajp
Date Tue, 19 May 2009 19:16:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=40136


Mustapha Ait-Idir <aitidirmustapha@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED




--- Comment #7 from Mustapha Ait-Idir <aitidirmustapha@hotmail.com>  2009-05-19 12:16:51
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("MUSTAPHA", id);
            configureSessionCookie(mustCookie, false);
            response.addCookieInternal(mustCookie);

        }
.....

-- 
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message