Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need to avoid openging of page in a new window in IE

 
Venkatesh Nachimuthu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a war running in my local machine using jboss. In post login page, whenever i press CTRL key + N (new window) in IE 7, a new window opens as the same page in the old window, and the same session id persists(post login). Due to this, i am able to perform all actions simultaneously in both the windows for the same user. I need to avoid this scenario. Any configuration to be done at the server level to avoid request(with same session id) from more than one window at a time?? or i need to check anything in the code??....please help me out...
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Venkat" please check your private messages for an important administrative matter.
Please make a note that accounts with invalid display names are deleted.
Thanks.
[ November 04, 2008: Message edited by: Amit Ghorpade ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Due to this, i am able to perform all actions simultaneously in both the windows for the same user. I need to avoid this scenario.

Why? What issues are you trying to avoid?
 
Venkatesh Nachimuthu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually i have used a flag to indicate whether the user has refreshed that page or not..if that flag is set,then we will lock his account(user requirement)...so when a user accessing my site in two new windows can press refresh button(F5) in that page in one window and when he comes back to the old window with the same/different page, he is not able to perform any action as his account is locked....my client wants me to avoid the site(post login pages) being opened in two windows at a time...how to achieve this???
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use JavaScript to add some sort of ID to the request from each window. Then you can watch for the ID, if you already have a session with this id you can throw some exception.

This is however a fairly whacky user requirement - it would be easier to argue it down. What are your clients trying to achieve by preventing a page refresh? I'd worry that refreshing the page is a thing users do frequently in a browser, are they not just asking for loads of "please unlock my account" requests from irritated users?
 
Venkatesh Nachimuthu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Thanks for your reply....let me argue with my client...but anyhow, i am curious to know whether any solution is there to prevent such things by not using javascript to generate id's for each page..do we have any thing in java to identify whether the user request came from second window??....or can we prevent it from server side configurations??...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic