As per my understanding same session is shared among different tabs of same browser window. And for different browser window , different session is created. Now some questions on my understanding:-
1)When i hit my web application in two different browser window, i see same jsession id on firefox console. How same session session is shared among two different browser window. As by default session is maintained through cookies with the help of jsessionId which is created by webserver. Other way of maintaining the session thru URLRewriting where we maintain session by passing jsessionId in each url request. I can see using org.tuckey.web.filters.urlrewrite.UrlRewriteFilter in project but this class document does not seem to do any magic much session maintenance. I am not getting how come same session is attached with two different browser window and techinical approach to do it
2)similary when i hit two different application under two different tabs of same browser window probably google and some other website say yahoo, i dont see same jsessionId in firefox console for these two website. Is the website doing some special stuff here to generate new session for each Tab? In fact for some website(probably for google) i do not see jsessionId at all under firefox window. How its possible. My understanding it is generated automatically by webserver and is passed either by cookies or URLReWriting?
It would be helpful if somebody can answer inline to my question as its important to understand each point posted here for session management
UPDATE:- Let me put my questions with different scenarios:-
1)Hit two different URL(say google.com and stackoverflow.com) in two different tab of same browser window.
My Understanding:- Two session will be created as two cookies will be created for two different domain/port
2)Hit two same URL(say stackoverflow.com) in two different tab of same browser window.
My Understanding:- Onesession will be created as same cookies will be reused
3)Hit two same URL(say stackoverflow.com) in two totally different window of browser (firefox).
My Understanding:- how many session will be created in this case?