在jboss中可能的不同战争模块之间的会话共享? [英] session share between different war modules possible in jboss?

查看:76
本文介绍了在jboss中可能的不同战争模块之间的会话共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个运行在jboss中的Grails应用程序,但想要创建一个新的Grails战争模块,看起来&感觉与现有的一样(但不希望用户再次登录)。例如,如果我有war1和war2,域名应该是 $ b

http://domain.com/war1 <登录应该在这里完成..
http://domain.com/war2



我通过网络进行搜索,但无法找到一个简单/困难的方法去做这个。
请帮助〜。

解决方案

不同HTTP应用程序之间不能共享HTTP会话。您真正需要的是单点登录解决方案。一个穷人的SSO可以用饼干建造,但我不会说这是一种非常安全的方式。第一次会话可以设置一个cookie,第二次会话可以读取同一个cookie - 只要这两个应用程序的域名相同,就可以工作。



祝您好运! / p>

Is there an easy way to share session between different war modules in jboss?

I have a Grails app running in jboss, but want to create a new Grails war module which looks & feels the same as the existing one (but, don't want user to login again). The domain will be same, for example, if I have war1 and war2, the domain should be

http://domain.com/war1 <-- login should be done here.. http://domain.com/war2

I searched through the web, but couldn't find an easy/or difficult way to do this. Please help~.

解决方案

No HTTP sessions are not shareable between servlets from different apps. What you really need is a Single Sign On solution. A poor man's SSO can be built with cookies but I wouldn't call it a very secure way. First session can set a cookie and the second session can read the same cookie - this will work as long as the domains are the same for both apps.

Good luck!

这篇关于在jboss中可能的不同战争模块之间的会话共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆