ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasanthi_ofbiz <prasanthi.sreeramjammise...@tcs.com>
Subject Re: session clearing on each click of ofbiz application
Date Wed, 16 Jun 2010 07:29:17 GMT

Dear Raj,
I resolved the problem. Problem is not in apache configuration.Its in ofbiz
application.
For this I did changes as

1. Go to
ofbiz/framework/catalina/src/org/ofbiz/catalina/container/CrossSubdomainSessionValve.java.
2. Search for invoke() function. Inside that function change code from
request.getSession(true);  to request.getSession(false);  
Also comment the following section:
// replace any Tomcat-generated session cookies with our own
        /*Cookie[] cookies = response.getCookies();
        Debug.log("response.getCookies()
value.............."+response.getCookies());
        if (cookies != null) {
            for (int i = 0; i < cookies.length; i++) {
                Cookie cookie = cookies[i];
                if (Globals.SESSION_COOKIE_NAME.equals(cookie.getName())) {
                        Debug.log("cookie.getName()
........."+cookie.getName());
                        Debug.log("cookie.getDomain()
........."+cookie.getDomain());
                    replaceCookie(request, response, cookie);
                }
            }
        }*/

3. Build the application


Now its working fine.

Regards
Prasanthi

-- 
View this message in context: http://ofbiz.135035.n4.nabble.com/session-clearing-on-each-click-of-ofbiz-application-tp2237194p2257002.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Mime
View raw message