Q : In session created by server with client(browser) How
can server find that request coming is belong to new
session OR belong to session that is timeout.
Answer Posted / vanita
when client request for the first time, container generates
a session id for that perticular user. server process the
request and sends the response and also sends that sessionID.
for next request from the same user, that session id must be
sent back to the server so that server can fetch the
sessionID from request and match with previously generated
IDs , if match then it associates this next request with
the previous session.
This transfer of sessionId b/w server and user can be done
via 2 ways -
1. By cookies
2. By URL rewritting
In case if browser doesnt support cookies, then only the
second method is used.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why do we use expression language in jsp?
What is the requirement of a tag library?
How to include static files in a jsp?
Why is it that JComponent have add() and remove() methods but Component doesn’t?
How is jsp used in the mvc model?
What are different types of comments in jsp?
What is the need for jsp?
What are implicit objects in jsp?
Is there a way I can set the inactivity lease period on a per-session basis?
How can we handle the exceptions in jsp?
How do you delete the session data?
What is client scripting?
What is jsp in javascript?
What is the _jspservice() method?
How can I enable session tracking for jsp pages if the browser has disabled cookies?