• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

new browser detection

 
Betsy Camel
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want the java code to detect new instances of Internet explorer that is opened. I am capturing the count of IE opened in a system. Please help
Regards
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do this with a Servlet. Servlets run on the server, browser instance on the client. You can detect requests from different browser instances - a browser will have a specific session id. This suit your needs?
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:You can't do this with a Servlet. Servlets run on the server, browser instance on the client. You can detect requests from different browser instances - a browser will have a specific session id. This suit your needs?

I think that depends on the browser. I believe some browsers will still send the same session info to the server for all open windows.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on the browser you are right, it alse depends on how the new window was opened. For example CTRL+N from IE will give you the same session id, running from the STart menu will give you a differernt id.

But I read the question as being about about browser instances, not browser windows. A seperate instance will have a seperate session id.
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:It depends on the browser you are right, it alse depends on how the new window was opened. For example CTRL+N from IE will give you the same session id, running from the STart menu will give you a differernt id.

But I read the question as being about about browser instances, not browser windows. A seperate instance will have a seperate session id.

Perhaps, but I would argue that the user doesn't know the difference between different browser windows and separate instances. Also, I'm pretty sure that for browsers like Firefox and Seamonkey, you'll always have just one instance on a given host (unless you launch using a separate profile).

Anyway, I just wanted to make sure the OP was aware of the issue.

Best Regards,

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic