It's not a secret anymore!*
The moose likes JSP and the fly likes how do i differentiate two instance or client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how do i differentiate two instance or client" Watch "how do i differentiate two instance or client" New topic
Author

how do i differentiate two instance or client

Rubel Ahammad
Greenhorn

Joined: Feb 05, 2005
Posts: 19
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


rubel ahammad<br /> <br />SCJP 1.4 (91%)<br />SCWCD 1.4 (Preparing)
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do i differentiate two instance or client
 
Similar Threads
Dual Session management using weblogic application server.
front end choice
Session Tracking thro HttpSession
Session tracking
No concurrent calls on stateful beans exception