Realised that cookie resend wouldn't get called as soon as socket thinks session is connected. Fixed.