Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sessiontimeout

 
nitin kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I open an url in an browser window.say(http://www.javaranch.com same should not be able to open in another browser window on my system.Can anyone tell me how to do this
bye
nitin
 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not limit a specific user to one session? In other words, you can use a cookie, or some other logic to identify users, and if the user already has an open session, deny them access to a second session. We've done this for an application that requires the users to login. Once they login, their session is logged, and if the same user attempts to login again (from any machine), they are denied. Of course, we use a database to track users, but you can do it with a Bean in application scope.
 
nitin kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
H
 
nitin kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Winston,
Is there any event in JavaScript to identify the browser events.I need to execute a jsp when a browser window closes
bye
nitin
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!