GDS-1114 Improve session expiration handling with Flex