简体   繁体   中英

Browser not sending correct jsessionId for weblogic server?

My app url is http://localhost:7001/customer

When i hit this url browser(firefox/chrome) sends some jsessionId(say 100) to back end (app server). Weblogic creates new jsessionId(say 200) as 100 does not exist and send it back as response header. Now whenever hit my app url it should send 200 but its still sending stale jsessionId ie 100

If i use same code with tomcat, it works as expected. I am not sure why correct jsessionId is not sent in case of weblogic ? Muy guess is weblogic is by default sending some cookie or response header which is restricting browser sending the latest jssession. I am not sure what it is or what can be other reason?

I shifted to weblogic 12.2.1 from tomcat 6

emilly, use your browsers web developer extension (chrome >> f12 >> network tab) to figure out which cookies is the browser sending to the server. Sometimes there can be multiple cookies with the same name sent to the server and it is perhaps picking up one at random. Cleaning up the cookies and retrying may help.

Alternatively you can use a tool like fiddler to see the cookies sent over the request

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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