"Srinivasan S (Systems Engineering Group)" wrote:
>
> Hi team,
>
> Same old doubt which a kid will ask when he starts learning
> session tracking. I have a servlet running on my server and a client
> access that page the cookie name is "cooks" for session A and another
> client access the same server say session B what name will it be given to
> session B if the same "cooks" then for a single servlet all the cookie
> name is equal. If so, how a session tracking is implemented, please help
> me i have read jason hunters book still i have this doubt get uncleared.
The cookie *name* is the same for all sessions (usually something like
"sessionid" with a prefix identifying the servlet engine), but the cookie
*value* is unique per session. The servlet engine generates a new unique
session ID when a session is created, usually some combination of time,
a counter and the servers IP address. It uses this ID as the cookie
value. So when the client sends the cookie back to the server with the
next request it can associate the request with the correct session.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
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