论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
Jigna parag Joshi
jsessionid across multiple domain
2011年12月6日 上午5:43
答复

Jigna parag Joshi

等级: Junior Member

帖子: 41

加入日期: 2008年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?
Raja Nagendra Kumar
RE: jsessionid across multiple domain
2011年12月6日 上午6:56
答复

Raja Nagendra Kumar

等级: Expert

帖子: 484

加入日期: 2006年3月1日

最近的帖子

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
2011年12月6日 上午6:44
答复

Juan Gonzalez

LIFERAY STAFF

等级: Liferay Legend

帖子: 1984

加入日期: 2008年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?
Jigna parag Joshi
RE: jsessionid across multiple domain
2011年12月6日 下午8:55
答复

Jigna parag Joshi

等级: Junior Member

帖子: 41

加入日期: 2008年12月9日

最近的帖子

thanx for ur reply..i m using jboss as our app server.
Jigna parag Joshi
RE: jsessionid across multiple domain
2011年12月6日 下午9:29
答复

Jigna parag Joshi

等级: Junior Member

帖子: 41

加入日期: 2008年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 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
2012年10月5日 上午3:50
答复

Jan Eerdekens

等级: New Member

帖子: 15

加入日期: 2011年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.