简体   繁体   English

浏览器没有为weblogic服务器发送正确的jsessionId?

[英]Browser not sending correct jsessionId for weblogic server?

My app url is http://localhost:7001/customer 我的应用程序网址是http://localhost:7001/customer

When i hit this url browser(firefox/chrome) sends some jsessionId(say 100) to back end (app server). 当我点击此URL浏览器(firefox / chrome)发送一些jsessionId(比如100)到后端(应用服务器)。 Weblogic creates new jsessionId(say 200) as 100 does not exist and send it back as response header. Weblogic创建新的jsessionId(例如200),因为100不存在并将其作为响应标头发送回。 Now whenever hit my app url it should send 200 but its still sending stale jsessionId ie 100 现在,每当打我的应用程序URL时,它应该发送200,但仍然发送过时的jsessionId,即100

If i use same code with tomcat, it works as expected. 如果我将相同的代码与tomcat一起使用,它将按预期工作。 I am not sure why correct jsessionId is not sent in case of weblogic ? 我不确定为什么在weblogic情况下未发送正确的jsessionId? Muy guess is weblogic is by default sending some cookie or response header which is restricting browser sending the latest jssession. Muy猜测是weblogic默认情况下会发送一些cookie或响应标头,从而限制了浏览器发送最新的jssession。 I am not sure what it is or what can be other reason? 我不知道这是什么还是其他原因?

I shifted to weblogic 12.2.1 from tomcat 6 我从tomcat 6转到了weblogic 12.2.1

emilly, use your browsers web developer extension (chrome >> f12 >> network tab) to figure out which cookies is the browser sending to the server. 埃米尔,请使用您的浏览器Web开发人员扩展(chrome >> f12 >>网络标签)来确定浏览器发送到服务器的cookie。 Sometimes there can be multiple cookies with the same name sent to the server and it is perhaps picking up one at random. 有时可能会有多个具有相同名称的cookie发送到服务器,并且它可能是随机抽取一个。 Cleaning up the cookies and retrying may help. 清理cookie并重试可能会有所帮助。

Alternatively you can use a tool like fiddler to see the cookies sent over the request 或者,您可以使用诸如提琴手之类的工具来查看通过请求发送的Cookie

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM