muktesh tripathi wrote:
1. Is the sessionID(the same one) is added to the response on 2nd and 3rd and... response to browser or on only the first response ??.
Only if the request doesn't contain any cookie with the session ID nor the jsessionid attachment in the request URI.
2. If we call session.invalidate() then what is actually destroyed. How does the browser know that session has been invalidated if he does not get any hint from response object?? (if the answer to Q 1 is -ve)
The session ID is also stored on the server side. If it isn't present, a new one will be created, hereby setting/overriding the cookie.
3. Does the container automatically send new sessionid after session.invalidate() method has been called??
When the session is needed, yes.
THERE ARE NO DUMB QUESTIONS....HFSJ
Uhm, OK.