• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Logging out in Ctrl-N window

 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Probably with a technique similar to the one discussed in your last thread:
https://coderanch.com/t/287201/JSP/java/session-issues-Ctrl
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please continue this discussion in the previous topic.
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic