My Oracle Support Banner

New HTTP Session Generated For Each Interaction When Cookie-Secure is Enabled (Doc ID 1277059.1)

Last updated on DECEMBER 16, 2023

Applies to:

Oracle WebLogic Server - Version 10.0 and later
Information in this document applies to any platform.

Symptoms

JSESSIONID changes when the application is switched from HTTPS to HTTP. When we enable the SSL port in the WebLogic Server admin console, the session maintains the same session id but when we use the non-SSL port, it generates a new session id with each communication with the browser.

Expected behavior:

If the application is accessed either on the SSL port or the non-SSL port, there shouldn't be a change in the value of the JSESSIONID.

Replication Steps:

  1. Assembly (as .war) and deploy the application, and target it to the AdminServer.
  2. Make sure that the server is listening in SSL using the demo certs. Disable the HTTP port of WebLogic Server.
  3. Now, hit the application on the SSL port and you will see the JSESSIONID printed in the Browser. Just keep on pressing F5 and you will see that the JSESSIONID does not change.
  4. Note the JSESSIONID in a notepad.
  5. Disable the HTTPS Listen Port for AdminServer and then enable the HTTP Port.
  6. Now, hit the application on the HTTP port in the same Browser and for every hit on HTTP, you will see that the JSESSIONID keeps changing for every hit.

 

Header/WEB-INF/web.xml

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.