gpt4 book ai didi

c# - ASP.NET/IIS : Log out all users

转载 作者:行者123 更新时间:2023-11-30 14:19:42 25 4
gpt4 key购买 nike

在 IIS 上运行的 ASP.NET 3.5 应用程序中,我如何强制对所有当前登录和经过身份验证的用户进行“取消身份验证”?

iisreset 似乎没有成功!

最佳答案

更改身份验证表单名称将要求所有用户进行新的身份验证。

来自:

<authentication mode="Forms">
<forms name="originalName" loginUrl="~/Account/Login" />
</authentication>

收件人:

<authentication mode="Forms">
<forms name="differentName" loginUrl="~/Account/Login" />
</authentication>

关于c# - ASP.NET/IIS : Log out all users,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2354989/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com