Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i differentiate two instance or client

 
Rubel Ahammad
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear friends,
In the index page of my web site i wish to include some logic based on the client. i. e suppose i've opened two instances of ie or any other browser. or it can be two different tab in safari or netscape. when i send request to the index.jsp page of my web application from these two different instances of the browser or two different tabs of the browser, i wish to store two different id for these two instances so that even if the session gets timmed out i can retrieved the corresponding information based on that ids. hope i'm clear to u.

how do i do that.
thanks
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rubel Ahammad:
In the index page of my web site i wish to include some logic based on the client. i. e suppose i've opened two instances of ie or any other browser. or it can be two different tab in safari or netscape. when i send request to the index.jsp page of my web application from these two different instances of the browser or two different tabs of the browser, i wish to store two different id for these two instances so that even if the session gets timmed out i can retrieved the corresponding information based on that ids.


In Netscape, Firefox, Safari two tabs shares the same session.
In IE second window would share the same session if opened using Ctrl+N.

You can easily write the info to DB and get that whenever you want.

Where is the problem,
- in storing two different Ids?
- in storing Ids?
- in retrieving information?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic