AnsweredAssumed Answered

Cmis and session cookis

Question asked by cstrom on Nov 20, 2010
Latest reply on Dec 8, 2010 by bremmington
I noticed that after clicking around in the Web Quick start application, the alfresco application (/alfresco) has hundreds of active sessions. I assume this is because OpenCmis ignores the session cookie Tomcat tries to set. Surely this is not intended?

After some research, I found that the problem is easy to resolve. I added this code to the constructor of GuestSessionFactoryImpl.java

CookieManager cm = new CookieManager(null, CookiePolicy.ACCEPT_ALL);
CookieHandler.setDefault(cm);

This tells OpenCmis to use the session cookie. However, this is a system wide setting not specific to Open CMIS. Are there any implications doing this?

Outcomes