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

How to use jsp el to get http method name?

922


Is jsp compiled?

885


How to deactivate el usage on jsp?

958


What is the use of requestdispatcher?

917


What is the page directive is used to prevent a jsp page from automatically creating a session?

950


Explain the uses of tag.

896


Explain the action.

880


How do I include static files within a jsp page?

939


What jsp lifecycle methods can be overridden?

956


HOW CAN WE COMPARE TWO PDF FILES USING JSP ?

2881


What do you know about jsp expression language (jsp expression language – el)?

918


What is jstl used for?

902


Define Expression

964


What is cookies in jsp?

866


What is called jsp directive?

930