Werk #19621 · May 13, 26
Fix ntopng session cookie not refreshing after expiry
Previously, after the ntopng session cookie expired, the integration would fail with the error "No ntopng interfaces found". Re-adding the same user would not resolve the issue — only adding a new user would temporarily fix it, until the session expired again.
The session cookie is cached to disk after first login and reused on every subsequent request. ntopng makes this hard to detect by returning HTTP 200 even for expired sessions, either with a non-JSON response (e.g. an HTML login redirect) or a JSON response with a non-zero return code.
The integration now detects both failure signals and automatically invalidates the stale cookie, fetches a fresh session, and retries the request — all transparently. No user action is required.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- ntopng Integration
- Versions:
- 3.0.0b1Not yet releasedProUltimateUltimate + MTCloud
- 2.5.0p4ProUltimateUltimate + MTCloud
- 2.4.0p30ProUltimateUltimate + MTCloud