相关疑难解决方法(0)

FormsAuthentication.SignOut()不会将用户注销

对此我砸了太久了.如何防止用户在使用FormsAuthentication.SignOut注销后浏览网站的页面?我希望这样做:

FormsAuthentication.SignOut();
Session.Abandon();
FormsAuthentication.RedirectToLoginPage();
Run Code Online (Sandbox Code Playgroud)

但事实并非如此.如果我直接输入URL,我仍然可以浏览到该页面.我有一段时间没有使用自己的安全性,所以我忘记了为什么这不起作用.

asp.net forms-authentication

139
推荐指数
8
解决办法
13万
查看次数

标签 统计

asp.net ×1

forms-authentication ×1