开发者

Asp.net LoginStatus - 'log out' shows but not logged in yet

开发者 https://www.devze.com 2022-12-23 21:50 出处:网络
Why does my loginStatus show \'log out\' even though I\'ve not actually logged in yet? <asp:LoginStatus ID=\"LoginSta开发者_JAVA技巧tus1\" runat=\"server\"

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".

0

精彩评论

暂无评论...
验证码 换一张
取 消