Reputation: 62
When clicking logout button I just used :
response.redirect("login.aspx");
But the thing is when I click back in browser, it is logging in without entering passwords.
Secondly, my question is how to end this session.
My code snippet is here,
<li><a href="Default.aspx" runat="server" onclick="LogoutClicked()"><span class="glyphicon glyphicon-log-out"></span> Log Out</a></li>
Thirdly, that is a asp.net page using C#, but I just used an anchor tag that just redirects.
Upvotes: 0
Views: 2007
Reputation: 1382
You need to abandon session so all your sessions should be destroyed after logout Try this
Session.Abandon();
Respone.Redirect("Your Url");
Upvotes: 3