Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7781867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:21:45+00:00 2026-06-01T19:21:45+00:00

During some debugging of our WebLogic application, I’ve noticed that the JSESSIONID doesn’t change

  • 0

During some debugging of our WebLogic application, I’ve noticed that the JSESSIONID doesn’t change after the user logs out.

I’m trying to understand if this is something I need to be concerned with.

This application is one of two applications running within a WebLogic instance, and I notice that they both share the same JSESSIONID.

This question makes reference to the following:

SRV.7.3 Session Scope

HttpSession objects must be scoped at the application (or servlet
context) level. The underlying mechanism, such as the cookie used to
establish the session, can be the same for different contexts, but the
object referenced, including the attributes in that object, must never
be shared between contexts by the container.

This suggests that ultimately it’s up to WegLogic to choose how to manage these JSESSIONID values, and I should not try to interpret meaning from the change in value (or lack thereof).

Additionally, I’ve wired up an HttpSessionListener on the application, and I see the sessionDestroyed method get invoked.

Given these two elements, it seems safe to me that the JSESSIONID is not changing. However, this is different behaviour from what I’m used to, so would like to verify my assumptions.

Is it a security concern that the JSESSIONID doesn’t change?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:21:46+00:00Added an answer on June 1, 2026 at 7:21 pm

    No, it shouldn’t be a huge security concern, since all the data that was actually associated with that session is discarded. The JSESSIONID is just a key to that (now nonexistent) data.

    However, if you want the JSESSIONID to change on each logout/login, you could just implement your logout functionality such that it explicitly deletes the JSESSIONID cookie when the user logs out. Then the server will allocate them a brand new session/id on their next request.

    Of course, as noted in the documentation, if you have multiple contexts that all happen to be relying on the single JSESSIONID cookie, then deleting it from one will essentially delete it from all, effectively logging the user out of every context on your server. Although in practice, it’s not hugely common to have multiple user-facing contexts, each with its own login/session state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client-server application that utilises MSMQ and NServiceBus for messaging. During some
I'm debugging an application that loads DLLs I didn't compile, but they have some
I've been tasked with debugging a Java (J2SE) application which after some period of
While debugging some C# code during a sort of peer-review, I noticed an odd
For some reason, it seems that stopping at a breakpoint during debugging will kill
I notice a strange thing during doing some stored procedures I can explain that
In some my project I notice that during executing unit tests under VSTS2008 its
This is for debugging purpose. I've got a for loop that generates some output
I read some advice about fixing the Source not found issue during debugging. The
We're currently facing some issues during Unit Testing. Our class is multithreading some function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.