Forums Register Login

Session

+Pie Number of slices to send: Send
How is a session mapped to a socket. I mean, whenever a request comes from a new client, a new socket connection is created at the server and a session is started for that user(if a session is needed). How is this mapping done.
+Pie Number of slices to send: Send
The best way to think of this is in terms of the Thread that is assigned to a particular request, not the socket. Those details are taken care of by the servlet engine.
The engine can see if a session has been assigned to this user by looking for a session id in the HTTP request cookies or as part of a rewritten URL.
Bill
I don't like that guy. The tiny ad agrees with me.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 560 times.
Similar Threads
new to Socket prgramming
problem in simple chat application.
Plain socket to SSL
how to give port number for socket class
Socket connection problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:01:05.