Hi Madhav,
Please explain me how a session object is created ? How does a Servlet container deteremine whether a session already exists ?
I went thru the article you mentioned still my doubt is not clarified:
AS per the article session objects are stored in servlet container. In an environment like free servlet hosting, is it not the servlet container common for all the users ?
This is what i understand:
Browser detects that call to url
www.xxx.com/A/app1 is for the first time. So it doesnot have already a cookie stored in it. Sends in its Request object just the url
www.xxx.com/A/app1. Servlet creates a session object, puts in the servlet container and sends the session id back to broser via Response object.
Next time when browser sends a request to wwww.xxx.com/A/app1, it sends the session id also.
My question is, say from the same computer, same browser session if a request is made to url
www.xxx.com/B/app2, will it send the session id or not ?
I would like to know how the browser differentiates the call made to different applications in different servlet context, but with in the same url.
I hope i have expressed myself clearly.
regards
Sankar