Asp.net LoginStatus - 'log out' shows but not logged in yet
Why does my loginStatus show 'log out' even though I've not actually logged in yet?
<asp:LoginStatus ID="LoginSta开发者_JAVA技巧tus1" runat="server"
LoginText="Log In"
LogoutText="Log Out"
LogoutPageUrl="~/Default.aspx"
LogoutAction="Redirect" />
Check authentication mode in web.config. It may be set to "Windows" change it to "Forms".
精彩评论