• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Invalidation

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have application where after user login, a user details object is stored in the session. On logout, user object from session is removed. In case if users login to application in two browser windows with two different user ids and logout a user in one window, then, even the second user in other window is also logged out.

The question here is since two users login, there should be two session objects created and logging off one user should not impact other user.

Let me know if this understanding is correct or it is expected session mechanism from browser front.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eshwar Prasad wrote:I have application where after user login, a user details object is stored in the session. On logout, user object from session is removed. In case if users login to application in two browser windows with two different user ids and logout a user in one window, then, even the second user in other window is also logged out.

No, it won't happen unless you developed the application in such a way that you share same session for all users, which is bad.
 
Jarek Wa
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sagar Rohankar wrote:
Eshwar Prasad wrote:I have application where after user login, a user details object is stored in the session. On logout, user object from session is removed. In case if users login to application in two browser windows with two different user ids and logout a user in one window, then, even the second user in other window is also logged out.

No, it won't happen unless you developed the application in such a way that you share same session for all users, which is bad.


I agree with Satar. I believe that you have designed your apllication in a wrong way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic