Thanks Scott, I clarified the situation in wiki FAQ
Jacques Scott Gray wrote:
There's a property in ofbiz-containers.xml to turn that off: <property name="enable-cross-subdomain-sessions" value="false"/> false has been the default for a while now though. Regards Scott HotWax Media http://www.hotwaxmedia.com On 16/06/2010, at 7:29 PM, prasanthi_ofbiz wrote: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.
