I have a testwebsite in which I've made the Loginstatus to be
[ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="Account/Logout.aspx"/> ]
However when I click the Log Out on the screen .. it goes to this url and doesn't actually call the logout page.
"http://localhost/TestWebSite/Account/Login.aspx?ReturnUrl=%2fTestWebSite%2fAccount%2fLogout.aspx"
I was trying to make it call some logic to logout and remove a db row I have for my custom membership Provider. This logic was placed in the page load of the logout.aspx.cs
Session.RemoveAll();
FormsAuthentication.SignOut();
FormsAuthentication.RedirectToLoginPage();
but of course it's not being called... and of course if I login again with the ReturnUrl there, it immediately calls the logout page. I'm confused since this is not the behavior that I expected nor is documented.
Please help.
Thanks!