aspose file tools
The moose likes Servlets and the fly likes To recognise the Client Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "To recognise the Client" Watch "To recognise the Client" New topic
Author

To recognise the Client

Doshi Milan
Ranch Hand

Joined: May 29, 2001
Posts: 112
Hllo Friends,
I was asked in an interview as to how will the Web Server recognises, i.e distinguishes between the n number of clients it is entertaining. i.e in other words, the sesions are maintained but when the client say C1 again comes back how will the server know that it is C1 and not C2 or C3 ..etc.
Thanks in advance,
Regards,
Milan Doshi
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Through the Session objects.

Which are implemented one of two ways...

The server sets a cookie containing the session id and that cookie gets sent with each subsequent request, enabling the server to track who is who.

or if cookies are disabled, the server can use URL rewriting (it writes the session id into the URL), and this way can also keep track of who is who.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: To recognise the Client
 
Similar Threads
Swing client communication...
how many objects will be eligible for garbage collection
Cactus authentication
Servlet communication
Offline program