开发者

multiple domain session handling in servlets

开发者 https://www.devze.com 2023-01-16 04:25 出处:网络
I need to share sessions between multiple domains. By multiple domain I mean, I have one instance of tomcat6 running. And I can access my web开发者_JS百科app using urls

I need to share sessions between multiple domains.

By multiple domain I mean, I have one instance of tomcat6 running. And I can access my web开发者_JS百科app using urls localhost:8080/webapp/test.jsp and myhostname:8080/webapp/test.jsp (as I configured dns entry in hosts file)

Now, The javascript fires ajax calls to localhost:8080/webapp/ActionA and myhostname:8080/webapp/ActionB

Now it will throw an error for the invalid session.

If javascript fires ajax calls to localhost:8080/webapp/ActionA and localhost:8080/webapp/ActionB it will work fine.

Can some one suggest some ways to implement this.

-Thanks


You probably need a proper Single sign-on implementaion. Try one of the OpenId providers like Google, Yahoo, MSN

0

精彩评论

暂无评论...
验证码 换一张
取 消