wood burning stoves 2.0*
The moose likes Struts and the fly likes Prevent users from opening multiple windows to the same site Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Prevent users from opening multiple windows to the same site" Watch "Prevent users from opening multiple windows to the same site" New topic
Author

Prevent users from opening multiple windows to the same site

nn nike
Greenhorn

Joined: Jun 03, 2011
Posts: 1
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Prevent users from opening multiple windows to the same site