Hi,
There are actually 2 ways, u can track session by cookies or url rewriting.

Scenario 1. - Session tracking by cookies.
When u make a request to the server, the server looks for the cookies. If
cookie present it looks for the session object with that id (which is in the
cookie). Then associates this request with this session.

When u open a another instance of the same browser (for eg both were
Netscape). Then both instances share the cookie. So u will get only one
session.
On the other hand, u open another browser (say IE), then there is no cookie
present. So u'll get a new session.
Netscape and IE store cookies in different places.


Scenario 2 - session tracking by url rewriting.
In this case it will work differently. A request is associated with a
session from the parameter passed in the url(this parameter is the session
id). So if u dont have a session id parameter, u'll get a different session,
even though its the another instance of the same browser.

If its still not clear, just let me know, I'll explain once again.
HTH
Sudhi

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to