>every time I click "refresh" button, the counter will add one, but I
>found that wehn I open another browser, the sessionID is still the
>previous sessionID, and the counter is not 1 but the previous number
>adding one. The browser I use is IE4.0, and Netscape4.5, they have the
>same probleom.


Many people confuse session-id's with browser-id's, but this is incorrect.
Sessions don't depend on browsers. Since session-info is usually stored in
cookies on the client, opening two browser windows who share the same
cookie-data will bring both browsers in the same session. So session-id's
are more client-id's than browser-id's.
To test your servlets, the easiest way is to test it on two different
clients/computers. Or run both IE and Netscape at the same computer at the
same time. Since they don't share cookie-data, they'll create different
sessions.

Arjan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to