Sorry for my english.
Problem: Session reconnect throws you to the last tab (not current open).
Our team use package variables and time to time we need to force reconnect to database to provide clean tests.
To configure environment we use logon script. So when we do reconnect: new tab opens to run logon script, when it closes we are redirected to the last tab.