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

Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme

1505


How to connect jsp and java file?

701


Can I use javascript on jsp page?

659


What language is jsp?

718


What information is needed to create a tcp socket?

668






What is a javaserver pages (jsp)?

715


Differentiate between and <%@include file=…>.

695


How can I implement a thread-safe jsp page? What are the advantages and disadvantages of using it?

650


What is page scope?

644


How can I maintain session in JSP Page in the bases of user name and password:

731


How to run java program in jsp page?

658


Can a jsp page process html form data?

736


What is the use of jstl?

642


What is the need of jsp?

649


What are scriptlets in jsp?

698