Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fateh Alchhabi
how i can make static SessionID for same user for ever
April 5, 2012 2:27 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

i use liferay6.5 clustered with none-sticky load-balancer and i store liferay session in JDBCStore
every thing work fine for me but my problem is i need to make static session ID created for each user
for example when user "test" log in to nod1 new session ID created and if the same user log in to Nod2 new session created so the session replication is losted between the two nods in the clustering, and this caused me problem if on node crashed so the user will log out from the portal
so how i can solve such thing

PS. no plane for now to change the load balancer to Sticky session because we used F5 hardware load balncer
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 5, 2012 4:00 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

You have to enable <distributable/> in web.xml in Liferay. After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.
Fateh Alchhabi
RE: how i can make static SessionID for same user for ever
April 7, 2012 5:12 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

i enable it from the first but it doesn't make any change ,,, new session create it emoticon
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 7, 2012 9:13 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

Fateh Alchhabi:
i enable it from the first but it doesn't make any change ,,, new session create it emoticon



As I've said, now you have to config your server properly.
Fateh Alchhabi
RE: how i can make static SessionID for same user for ever
April 9, 2012 7:08 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

You have to enable <distributable/> in web.xml in Liferay.
After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.


could you provide me with more details about the rest config plz
Juan Gonzalez
RE: how i can make static SessionID for same user for ever
April 9, 2012 7:28 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

Fateh Alchhabi:
You have to enable <distributable/> in web.xml in Liferay.
After that, rest of config should be changed in app server side (example: Tomcat) so that J2EE session gets replicated through all nodes.


could you provide me with more details about the rest config plz


Nop sorry, that isn't a Liferay question. There are many tutorials around there.