非常气愤!!websphere 6 为什么会放弃我的第一个sessionId?

sAS112UUUYY111 2011-04-15 06:59:40
我在tomcat中部署成功的项目,放到websphere中就错,
使用了一个response.redirect("url");url更换了域名,但还是本项目的url。
原来叫a.b.c,重定向的url:d.b.c
把session保存到了cookie中,
但是在重定向后,在websphere中又创建了一个session,在tomcat中没有。



--------------------------------
...全文
45 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
y11111494 2011-04-19
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 sas112uuuyy111 的回复:]

有人知道它们的区别吗?
请教了
[/Quote]

的确很难,帮顶
sAS112UUUYY111 2011-04-18
  • 打赏
  • 举报
回复
[Quote=引用楼主 sas112uuuyy111 的回复:]
我在tomcat中部署成功的项目,放到websphere中就错,
使用了一个response.redirect("url");url更换了域名,但还是本项目的url。
原来叫a.b.c,重定向的url:d.b.c
把session保存到了cookie中,
但是在重定向后,在websphere中又创建了一个session,在tomcat中没有。


------------------……
[/Quote]
在websphere中有两种sessionId,导致在重定向时,出现了两个session,将重定向前的session给替换成了新的session
sAS112UUUYY111 2011-04-18
  • 打赏
  • 举报
回复
有人知道它们的区别吗?
请教了
Table of Contents IBM WebSphere Application Server - The Complete Reference Part I - Getting Started Chapter 1 - What Is WebSphere? Chapter 2 - Installing and Starting WebSphere Chapter 3 - Hello World (Wide Web) Chapter 4 - Hello Servlets and JSPs Chapter 5 - Hello EJBs Part II - WebSphere Technologies Chapter 6 - Web Servers and Java Application Servers Chapter 7 - Servlets and JavaServer Pages Chapter 8 - Common Object Request Broker Architecture Chapter 9 - Internet Inter-ORB Protocol Chapter 10 - JavaBeans Chapter 11 - Enterprise JavaBeans Chapter 12 - Extensible Markup Language (XML) Chapter 13 - Java Security Chapter 14 - Java Messaging Service Chapter 15 - Java 2 Enterprise Edition Part III - Development Environments for WebSphere Applications Chapter 16 - WebSphere Studio Application Developer Chapter 17 - VisualAge for Java Part IV - Core Services Chapter 18 - Connection Pooling and Data Access Beans Chapter 19 - WebSphere Security Services Chapter 20 - Lightweight Directory Access Protocol Support Chapter 21 - WebSphere Application Logging Part V - Developing Servlets and JavaServer Pages Chapter 22 - HTTP Servlets Chapter 23 - Servlet Sessions Chapter 24 - WebSphere-Specific Servlet Issues Chapter 25 - JSP Elements Chapter 26 - JSP Examples Chapter 27 - Custom Tag Libraries Chapter 28 - Debugging Servlets and JSPs Using VisualAge Part VI - Developing EJB Chapter 29 - Session Beans Chapter 30 - Entity Beans Part VII - Using XML Chapter 35 - Writing XML E-Business Applications Chapter 36 - Application of XSL Transformations Chapter 37 - Web Services: SOAP, WSDL, and UDDI Chapter 38 - Deploying Web Services on WebSphere Part VIII - Internationalization and Localization Chapter 39 - Java Support Features for Internationalization Chapter 40 - Building Multilingual Applications Part IX - Administering WebSphere Sites Chapter 41 - Deploying WebSphere for Scalability and Fault Tolerance Chapter 42 - The WebSphere Administrative Console Chapter 43 - WebSphere Administration Scripts Chapter 44 - Administering WebSphere Security

67,542

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧