File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session Invalidation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Invalidation" Watch "Session Invalidation" New topic
Author

Session Invalidation

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205

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.

Skanda
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Jarek Wa
Greenhorn

Joined: Jan 12, 2012
Posts: 6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Invalidation