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


Mustapha Ait-Idir <[email protected]> changed:

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




--- Comment #7 from Mustapha Ait-Idir <[email protected]>  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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to