Meaningless Drivel is fun!
The moose likes JSP and the fly likes Logging out in Ctrl-N window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Logging out in Ctrl-N window" Watch "Logging out in Ctrl-N window" New topic

Logging out in Ctrl-N window

sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415

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 ??

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Probably with a technique similar to the one discussed in your last thread:

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415
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

Joined: Jan 10, 2002
Posts: 63837

Please continue this discussion in the previous topic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Logging out in Ctrl-N window
jQuery in Action, 3rd edition