Open two browsers sessions and in one log into the site and close this browser. in the other open session, go to the same site. The user is already logged in. If both browsers are closed and a new browser is opened, this issue doesn't occur. How to fix this issue?
i.e how to clear the user's log as soon as he closes the browser?
You cannot fix this issue as it depends on how browsers handle cookie. By default all new browsers share cookies across multiple browser window.
Your only option, though is a tough one, is to switch to URL rewriting for session tracking.
In IE a way to workaround this is to use "New Session" option from file menu. Other browsers you can use private window or incognito mode to achieve the same result.
Profile is session scoped component.
So across same browser, multiple windows/tabs share same session,So We are logged in/out in one window/tab, We will get logged in/out across all windows/tabs.
But Do different browsers share sessions?Please Clarify the doubt.