Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logging out in Ctrl-N window

 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have seen a few websites which have done things mentioned below. i am wondering how they have implemented that . May be some one could tell us that

1. user A logs in a window
2. Then a new window is opened using Ctrl-N and from there he reaches the login window and logs in as user B .
3. When the user tries to operate in the first window , that says session expired .

it mean only one user can operate , how is this achieved ?? Assume that while the user B tried to login, he might have checked if some user has logged in and we can invalidate the old session up on which a new session will be created for B . But this session will be shared for both the browsers and the output of user B is expected even in the first window where user A has logged in

can any one explain how to go about this ??

Regards
Sreenath
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably with a technique similar to the one discussed in your last thread:
http://www.coderanch.com/t/287201/JSP/java/session-issues-Ctrl
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ben

This is a bit different .....whats the mechanism used to logout the olde user ?? i think its not based on the session as session will be same for both the browsers
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please continue this discussion in the previous topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic