Many portals log you out a fixed time after login (e.g. every 24 hours).
With check_every_second at 600, it could take up to 10 minutes to notice.
- New optional profile setting "session_hours" (also in the Add new dialog).
- The time of each successful login is saved per profile in
session_state.json, so it survives restarts.
- While connected, the next check is timed to land 2 minutes before the
expected expiry, then the connection is checked every 5 seconds until
10 minutes after it, so the program logs in again within seconds.
- If still connected after that window, the session was renewed some
other way and the normal interval is used again.
- Ignore runtime files (log.txt, session_state.json) in git.
Co-Authored-By: Claude Opus 5.5 <[email protected]>