wood burning stoves 2.0*
The moose likes Servlets and the fly likes Identifying clients uniquely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Identifying clients uniquely" Watch "Identifying clients uniquely" New topic
Author

Identifying clients uniquely

Sumeet H Singh
Greenhorn

Joined: Jan 03, 2009
Posts: 29
Hi,
Consider that 2 clients have sent a request to a server...while responding back, how does the server uniquely identify each client?
Which value(s) in HttpServletRequest exactly help the server to uniquely identify a client so that it can send back the response to the corresponding client?

Thanks in advance...


Sumeet
SCJP, SCWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Most of the network connection stuff is behind the scenes at a lower level than the interfaces that the container exposes to servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
Note that each request is running in it's own Thread and has the request and response objects which are tied (thru stuff you don't have to worry about) to the actual socket connection.

Therefore, the Thread does not have any confusion with other requests.

Bill
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1051

This is the container job to identify the client for request and response for the resources.

we donot need to worry for that.


SCJP6.0,My blog Ranchers from Delhi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Identifying clients uniquely
 
Similar Threads
SCJD RMI Query
B&S 2.3.1 - Identifying clients uniquely in RMI
Session IDs are different from GET and POST method
Identifying the thread that placed the lock
Lock question!