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


Please Help Members By Posting Answers For Below Questions

How to retrieve warnings?

600


What are the jsp elements?

522


How can we handle exceptions thrown by jsp service method?

579


Explain pge Directives.

617


What’s the difference between forward and sendredirect?

649






How is jsp include directive different from jsp include action. ?

613


How to include a jsp file in another jsp file?

568


How can information from one JSP be passed to another JSP?

668


How does a jsp work?

572


How we can disable session in jsp?

597


What is the jsp:plugin action ?

628


What is difference between html and jsp?

573


What is iselignored in jsp?

595


How will you use jsp el in order to get the http method name?

578


what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic

1962