Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Prevent users from opening multiple windows to the same site

 
nn nike
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a java struts web app, if I am browsing a site and then I open another IE 8 window* and go to the same site, is there a way to detect that the new request has come from another window from the same machine.

Basically my requirement is to alert the user that they cannot open another window with the same site.

*In IE 8 all windows share the same session. Hence request.getsession() would always return the same ID across all the windows.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic