Fixed session expired logout loop