如何停止执行并重定向到登录页面。我尝试过FormsAuthentication.Signout,但发现它不会停止执行并让代码继续执行。
Response.redirect 到登录页面
FormsAuthentication.SignOut();
Response.Redirect("URLToLoginPage");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2171 次 |
| 最近记录: |