在ASP.NET中销毁用户会话
如何在ASP.NET中销毁会话,当我单击浏览器的“上一步”按钮销毁会话时,它会将我重定向到登录页面。 请帮帮我。在ASP.NET中销毁用户会话,asp.net,Asp.net,如何在ASP.NET中销毁会话,当我单击浏览器的“上一步”按钮销毁会话时,它会将我重定向到登录页面。 请帮帮我。 提前感谢。您可以使用此事件处理会话。我希望它能帮助你 protected void HeadLoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session.Clear();//It clears the session when the user logged out. Session.A
提前感谢。您可以使用此事件处理会话。我希望它能帮助你
protected void HeadLoginStatus_LoggingOut(object sender, LoginCancelEventArgs e)
{
Session.Clear();//It clears the session when the user logged out.
Session.Abandon();
FormsAuthentication.SignOut();
}
呼叫销毁它。欢迎使用StackOverflow。请查看常见问题部分。如果你希望在任何话题上得到帮助,我们也希望你表现出一些努力。我们是来帮助你的,不是为你做工作的。你不必使用它,我假设你使用webforms。