IB Gateway/TWS are designed to be able to run Sunday-Sunday without re-authenticating. If you need to login to Client Portal or another trading application during that time you just need to use a different live username. Otherwise, if you login with the same username in a different application, the session token will expire and IB Gateway/TWS will present the "Re-Login" dialogue box after the next disconnection (such as the server reset).?