Properly redirect in LoginStatus ASP.NET

Under some circumstances redirection to LogoutPageUrl set in asp:LoginStatus control will not work as expected. You have to explicitly set the LogoutAction to value «Redirect».