Foros de discusión

Liferay portlet share session between users

Galym Dochshanov, modificado hace 11 años.

Liferay portlet share session between users

New Member Mensajes: 10 Fecha de incorporación: 22/06/12 Mensajes recientes
I have developed portlet for Liferay, after this I add new site, add page, setup portlet to page. I create new user group and add the group to the site membership, and all users added to this group can see my site, but when they update page, latest session state of current user is loaded. I suggest session is shared between all users. I tried to use
<private-session-attributes>true</private-session-attributes>


but did not help. How to do, that each user will have own instance of session?
thumbnail
Anil Sunkari, modificado hace 11 años.

RE: Liferay portlet share session between users

Expert Mensajes: 427 Fecha de incorporación: 12/08/09 Mensajes recientes
Hi Galym,
You are suppose to put it as <private-session-attributes>false</private-session-attributes> FALSE & are you using APPLICATION_SCOPE???

Correct me if i'm wrong with your note.

Regards,
Anil Sunkari
Galym Dochshanov, modificado hace 11 años.

RE: Liferay portlet share session between users

New Member Mensajes: 10 Fecha de incorporación: 22/06/12 Mensajes recientes
NO, I put <private-session-attributes>true</private-session-attributes> and use APPLICATION_SCOPE in session
I used member variables in the portlet, instead of local variables. The answer is located at liferay forum