Posted on: 9/14/2012 1:37:24 AM | Views : 264

Hi,
I have a <asp:LoginView> which user clicks to login or log out:
<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false"> <AnonymousTemplate> [ <a href="~/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ] </AnonymousTemplate> <LoggedInTemplate> Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>! [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ] </LoggedInTemplate> </asp:LoginView> The problem is: after user has logged out, the session is still there. If I log in as a different user, I can still access the previous user's session.
So I need a place, an event handler for the logout event, in which I can clear the sessions. But I don't have such an event handler, and t ...

Go to the complete details ...