File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes new browser detection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "new browser detection" Watch "new browser detection" New topic
Author

new browser detection

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
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

Joined: Apr 14, 2004
Posts: 10336

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?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark E Hansen
Ranch Hand

Joined: Apr 01, 2009
Posts: 650
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

Joined: Apr 14, 2004
Posts: 10336

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

Joined: Apr 01, 2009
Posts: 650
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,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new browser detection