Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Jigna parag Joshi
jsessionid across multiple domain
December 6, 2011 5:43 AM
Answer

Jigna parag Joshi

Rank: Junior Member

Posts: 41

Join Date: December 9, 2008

Recent Posts

Hi, how can we share same session among multiple virtual domain? means in our appolication user' is get logged in to some portal.asite.com and then based on his criteria he is redirected to some virtual domain like portalak.asite.com..but then new jsessionid is created. and my session Attributes are lost...can u pls tell how can we set domain of jsessionid from liferay?
Raja Nagendra Kumar
RE: jsessionid across multiple domain
December 6, 2011 6:56 AM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

Hi,

You could find solution at URL

http://www.emforge.net/web/akakunin/blogs/-/blogs/sharing-sessions-in-liferay

This solution is specific to tomcat...which application server are you using...

More generic one are setting the cookie domain property session.cookie.domain

http://www.liferay.com/community/forums/-/message_boards/message/1587599

Regards,
Raja Nagendra Kumar
C.T.O
www.tejasoft.com
Juan Gonzalez
RE: jsessionid across multiple domain
December 6, 2011 6:44 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1864

Join Date: October 28, 2008

Recent Posts

Jigna parag Joshi:
Hi, how can we share same session among multiple virtual domain? means in our appolication user' is get logged in to some portal.asite.com and then based on his criteria he is redirected to some virtual domain like portalak.asite.com..but then new jsessionid is created. and my session Attributes are lost...can u pls tell how can we set domain of jsessionid from liferay?



Why don't you use some SSO solution, like CAS?
Jigna parag Joshi
RE: jsessionid across multiple domain
December 6, 2011 8:55 PM
Answer

Jigna parag Joshi

Rank: Junior Member

Posts: 41

Join Date: December 9, 2008

Recent Posts

thanx for ur reply..i m using jboss as our app server.
Jigna parag Joshi
RE: jsessionid across multiple domain
December 6, 2011 9:29 PM
Answer

Jigna parag Joshi

Rank: Junior Member

Posts: 41

Join Date: December 9, 2008

Recent Posts

I tried to put <Service name="Catalina" className="com.liferay.support.tomcat.core.PortalStandardService"> in deploy\jboss-web.deployer\server.xml...but, deployment is failed..It is giving below error

10:57:37,986 ERROR Begin event threw exception
java.lang.ClassNotFoundException: No ClassLoaders found for: com.liferay.support.tomcat.core.PortalStandardService
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
Jan Eerdekens
RE: jsessionid across multiple domain
October 5, 2012 3:50 AM
Answer

Jan Eerdekens

Rank: New Member

Posts: 15

Join Date: January 20, 2011

Recent Posts

It might be a bit late, but as mentioned in this Liferay issue and this Tomcat issue, adding a sessionCookieDomain attribute to the Context tag of the ROOT.xml in <tomcat>/conf/Catalina/localhost did the trick for me.