cancel
Showing results for 
Search instead for 
Did you mean: 

Cmis and session cookis

cstrom
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

bremmington
Champ on-the-rise
Champ on-the-rise
Thanks for raising this. We'll investigate further.

bremmington
Champ on-the-rise
Champ on-the-rise
The fix that you suggest seems to be the right one - we can't find any adverse effects. This has been committed onto HEAD and will be available in the next nightly build. Many thanks for taking the time to investigate this problem and come up with a fix - much appreciated.