Fórum

Liferay portlet share session between users

Galym Dochshanov, modificado 11 Anos atrás.

Liferay portlet share session between users

New Member Postagens: 10 Data de Entrada: 22/06/12 Postagens Recentes
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 11 Anos atrás.

RE: Liferay portlet share session between users

Expert Postagens: 427 Data de Entrada: 12/08/09 Postagens Recentes
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 11 Anos atrás.

RE: Liferay portlet share session between users

New Member Postagens: 10 Data de Entrada: 22/06/12 Postagens Recentes
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