Skip to content
Commit 2a33e0fc authored by Florent Viard's avatar Florent Viard Committed by hydrargyrum
Browse files

[s2e] Detect when incorrect page content is returned because of of disconnection

Sometimes, instead of the expected content, an empty page with just a
META redirection is returned when it looks like that the user was
disconnected.

Ex.:
<!DOCTYPE html><html><head><META http-equiv="refresh" content="0;
URL=/portal/salarie-axa/operations/consulteroperations"></head><body></body></html>

A further request would encounter 302 redirections to the login page.

In such a case, raise a "Loggedout" exception as previously it was just
silently ignored and considered as a normal page.

Note: check_disconnected as to be called manually in iter_history, as a
simple "open" (compared to a "location") will not call the "on_load"
function of the page.
parent db2e9a74
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment