I am trying to clear session variable once a user click on a link outside my site. This is the code but use can still click on back arrow on the browser and still view/edit the site. how can I remove the session once the user click on the link.
<asp:HyperLink id="HyperLink1" NavigateUrl=" target='_self' OnClick="ClearSession" runat="Server"> Yahoo</asp:HyperLink>
Sub ClearSession(Source As Object, E As EventArgs)
Session.Abandon()
end sub
thanks
Al
<asp:HyperLink id="HyperLink1" NavigateUrl=" target='_self' OnClick="ClearSession" runat="Server"> Yahoo</asp:HyperLink>
Sub ClearSession(Source As Object, E As EventArgs)
Session.Abandon()
end sub
thanks
Al