且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET自动注销

更新时间:2023-02-25 17:33:50

如果您不使用Windows身份验证,这至少取决于会话超时您可以通过web.config中控制:

If you don't use "Windows Authentication", this at least depends on the session timeout you can control via web.config:

<configuration>
    <system.web>
        <sessionState timeout="10" />
    </system.web>
</configuration>

由于大部分技术在某种程度上依赖于会议,这将在大多数情况下工作。

As most techniques somehow rely on sessions, this will work in most scenarios.