Another feature that JSP and servlets bring to the table is the idea of object persistence across HTTP requests. When a browser first connects to a server, a session is established that is uniquely connected to that client. This allows information to be available from one request to the next, making it seem to the user as if all the requests were part of one session.
HOW ARE SESSIONS TRACKED?
When a client makes a request to a JSP server, how does the server associate the client with a specific session? The answer is, it depends.
If the client browser has enabled session cookies (that is, cookies that are kept only as long as the browser is running and are lost on shutdown), they are used to track the session. On ...