Selenium (web driver) allows you to open multiple browser windows (for example, 3 Firefox windows or 1 IE + 1 Firefox +1 Chrome).
In your code, you have an API to select the desired window (depending on how you opened it).
Regarding session processing: it depends on the type of browser. Firefox will share the session through multiple windows because it uses a single process. AFAIK IE and Chrome, if they are open as new processes, will not share it, but this, of course, also depends on how the server sets the cookie policy for the session. However, access to cookie values ββin the browser depends on the domain, so persistent cookies or local storage can exchange information even through sessions, so it really depends on how the web application is implemented (or what infrastructure is used), which mainly takes care of such material).
source share