Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is expression language injection?

868


What are the jsp elements?

831


Explain the difference between servlet and jsp?

931


When does a container initialize multiple jsp / servlet objects?

1006


What is jsp api?

897


What is pagescope in jsp?

863


What is the difference between servletcontext and pagecontext?

921


What is jsp and how it works?

852


What is difference between sendredirect and forward?

959


How many tags are provided in jstl?

1078


How session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2382


What is jsp and why do we need it?

870


How we can disable session in jsp?

908


What are the different life-cycle methods?

963


How does el search for an attribute?

855