Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
Jigna parag Joshi
jsessionid across multiple domain
6 dicembre 2011 5.43
Risposta

Jigna parag Joshi

Punteggio: Junior Member

Messaggi: 41

Data di Iscrizione: 9 dicembre 2008

Messaggi recenti

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
6 dicembre 2011 6.56
Risposta

Raja Nagendra Kumar

Punteggio: Expert

Messaggi: 484

Data di Iscrizione: 1 marzo 2006

Messaggi recenti

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
6 dicembre 2011 6.44
Risposta

Juan Gonzalez

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2797

Data di Iscrizione: 28 ottobre 2008

Messaggi recenti

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
6 dicembre 2011 20.55
Risposta

Jigna parag Joshi

Punteggio: Junior Member

Messaggi: 41

Data di Iscrizione: 9 dicembre 2008

Messaggi recenti

thanx for ur reply..i m using jboss as our app server.
Jigna parag Joshi
RE: jsessionid across multiple domain
6 dicembre 2011 21.29
Risposta

Jigna parag Joshi

Punteggio: Junior Member

Messaggi: 41

Data di Iscrizione: 9 dicembre 2008

Messaggi recenti

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
5 ottobre 2012 3.50
Risposta

Jan Eerdekens

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 20 gennaio 2011

Messaggi recenti

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.