留言板

jsessionid across multiple domain

thumbnail
Jigna parag Joshi,修改在12 年前。

jsessionid across multiple domain

Junior Member 帖子: 41 加入日期: 08-12-9 最近的帖子
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?
thumbnail
Raja Nagendra Kumar,修改在12 年前。

RE: jsessionid across multiple domain

Expert 帖子: 484 加入日期: 06-3-2 最近的帖子
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
thumbnail
Jigna parag Joshi,修改在12 年前。

RE: jsessionid across multiple domain

Junior Member 帖子: 41 加入日期: 08-12-9 最近的帖子
thanx for ur reply..i m using jboss as our app server.
thumbnail
Jigna parag Joshi,修改在12 年前。

RE: jsessionid across multiple domain

Junior Member 帖子: 41 加入日期: 08-12-9 最近的帖子
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 [Digester] 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)
thumbnail
Jan Eerdekens,修改在11 年前。

RE: jsessionid across multiple domain

New Member 帖子: 15 加入日期: 11-1-20 最近的帖子
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.
thumbnail
Juan Gonzalez P,修改在12 年前。

RE: jsessionid across multiple domain

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
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?