Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 同一个tomcat下部署了多个应用,请问能否在这写应用中共享session?
aryuan

hello world



发贴: 92
积分: 20
于 2004-11-15 19:01 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
如题


life is something like.......
作者 Re:同一个tomcat下部署了多个应用,请问能否在这写应用中共享session? [Re:aryuan]
sanshaoye





发贴: 16
积分: 0
于 2004-11-15 21:11 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Can't use session, but you can use cookie to share some information between different vhost,like 'www.cjsdn.com','bbs.cjsdn.com',etc...


Nothing is impossible to a willing heart!
作者 Re:同一个tomcat下部署了多个应用,请问能否在这写应用中共享session? [Re:aryuan]
yipsilon





发贴: 248
积分: 31
于 2004-11-22 22:09 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
同一主机, 不同应用下可以实现(在Host元素中加入其值为true的crossContext属性), 不同主机之间不能共享session.


作者 Re:同一个tomcat下部署了多个应用,请问能否在这写应用中共享session? [Re:yipsilon]
jigsaw

KK

CJSDN高级会员


发贴: 3666
积分: 93
于 2004-12-04 13:06 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
yipsilon wrote:
同一主机, 不同应用下可以实现(在Host元素中加入其值为true的crossContext属性), 不同主机之间不能共享session.

啊?可以这样?我怎么记得servlet spec里面明确说过了session不能跨context的呢?



No one knows except both of us.
909090909090909090909090909090909090909090b8533ce76c8d6c241868968a0408c338b4ffbf
ISO/IEC 9899:1999
作者 Re:同一个tomcat下部署了多个应用,请问能否在这写应用中共享session? [Re:aryuan]
yipsilon





发贴: 248
积分: 31
于 2004-12-19 19:40 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
使用SingleSignOn哪个应该可以的... 或者把session存到数据库中好了....


作者 Re:同一个tomcat下部署了多个应用,请问能否在这写应用中共享session? [Re:jigsaw]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2004-12-20 23:10 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
jigsaw wrote:
啊?可以这样?我怎么记得servlet spec里面明确说过了session不能跨context的呢?

Yes, I think so too.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923