Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IE-New Window/CTRL-N & Duplicate sessions  RSS feed

 
Todd Johnson
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote my first big web app for my company about a year ago. It's been running great, but I do have one bug. When I wrote the app I didn't realize if someone opens a new windows in internet explorer using CTRL-N or File->New->Window that they share the same session. Because I didn't plan for this, it causes major problems with my app. My design assumed one browser window per session. Live and learn!

My question is, is there anyway to identify this situation from the server side? Is there anything I can look at in the session or the response object that will give me a hint that the user has multiple windows associated to the same session?

Thanks!
Todd
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This topic discussed several times here. I liked only one solution. Your web app shouldn't ever reload entire window content, for example you use frames, or iframes and reload only their content. In this case parent page can keep some JS variable with a window ticket, which provided in all sequential requests. When a new window opened, there is no such ticket yet, so your server side code can recognize that and do appropriate action.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!