Cope with loss of session cookies on browser close