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

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 10.0 and later
Information in this document applies to any platform.
***Checked for relevance on 24-July-2012***

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. Deploy the attached Header 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.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms