Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
超时,asp.net c#,帐户-管理员_C#_Asp.net_Web Config_Timeout - Fatal编程技术网

超时,asp.net c#,帐户-管理员

超时,asp.net c#,帐户-管理员,c#,asp.net,web-config,timeout,C#,Asp.net,Web Config,Timeout,我有管理页面,我在那里编辑我的网站,这与sql的工作。3-4分钟后,管理员页面注销,并再次要求我输入用户名和密码。如何更改超时时的分钟数 我已经在web.config上尝试过: <authentication mode="Forms"> <forms loginUrl="~/Account/Login.aspx" timeout="60"/> </authentication> 这是: <authentication mode="Forms"

我有管理页面,我在那里编辑我的网站,这与sql的工作。3-4分钟后,管理员页面注销,并再次要求我输入用户名和密码。如何更改超时时的分钟数

我已经在web.config上尝试过:

<authentication mode="Forms">

  <forms loginUrl="~/Account/Login.aspx" timeout="60"/>
</authentication>

这是:

<authentication mode="Forms">

  <forms loginUrl="~/Account/Login.aspx" timeout="7200"/>
</authentication>

还有……这个:

  <httpRuntime requestValidationMode="2.0" useFullyQualifiedRedirectUrl="true"

         executionTimeout="72000"
         appRequestQueueLimit="90000"
         shutdownTimeout="90000" />


所有的结果都是一样的。。。3-4分钟后(即使我点击这里,而不仅仅是在空闲时),“表单”标签中的超时应该可以工作-您有多个配置吗?

在“表单”标签中的超时应该可以工作-您有多个配置吗?


<authentication mode="Forms">
            <forms timeout="20" slidingExpiration="true"/>
        </authentication>
添加一个滑动过期-让我知道这是否解决了您的问题。你用的是什么浏览器?是否您的cookie没有被持久化?



添加一个滑动过期-让我知道这是否解决了您的问题。你用的是什么浏览器?是否您的cookie未被持久化?

答案是-通过iis 7管理器在机器密钥处生成密钥,然后在iis 7管理器处再次更改会话。

答案是-通过iis 7管理器在机器密钥处生成密钥,然后再次更改会话,在iis 7管理器上。

检查您的网站中是否存在破坏会话的任何异常。您能更详细地解释您的意思吗?检查您的网站中是否存在破坏会话的任何异常。您能更详细地解释您的意思吗?