连续使用app时自动注销 [英] automatically logout when using app continuously

查看:166
本文介绍了连续使用app时自动注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序会在用户连续使用时自动注销。





web.config:



my application automatically log-out when user using it continuously .


web.config:

<authentication mode="Forms">
     <forms loginUrl="Authentication.aspx" timeout="2880" />
   </authentication>
     <sessionState mode="InProc" timeout="60" cookieless="false"/>







是什么原因? plz help ...




what is the reason? plz help...

推荐答案

检查这些

如何更改ASP.NET会话超时 [ ^ ]

Check these
How To Change ASP.NET Session Timeout[^]
从上面链接:

为什么增加会话超时可能不起作用

在某些情况下,当您增加会话超时时,则运行Web应用程序,会话仍将过期。可能的原因很少。



请注意,会话超时应小于应用程序池空闲超时,因此如果增加会话超时,则还必须增加应用程序空闲超时。否则,申请将被回收。如果应用程序被回收,会话将自动过期。

Why increasing of session timeout maybe not works
In some cases, when you increase session timeout, then run web application, session will still expire. There could be few possible reasons for this.

Notice that session timeout should be less than Application pool idle timeout, so if you increase session timeout, you have to increase application idle timeout too. Otherwise, application will get recycled. If application is recycled, sessions will expire automatically.

如何保持ASP.NET会话活动 [ ^ ](这将喝掉服务器带宽)

How To Keep ASP.NET Session Alive[^](This'll drink the server bandwidth)


感谢您回复@thatraja。这似乎是一个很好的建议。但遗憾的是它并没有奏效。我的应用程序中有两个角色。一个是Admin,另一个是Employee。奇怪的是,在管理员模式下,它会经常注销,但在员工模式下,直到手动完成或默认超时时间结束后才会注销。
Thanks for the reply @thatraja. That seemed to be a good suggestion. But unfortunately it did not work as well. There are two roles in my application. One is Admin, another is Employee. Its strange that in Admin mode, it logs out frequently, but in employee mode it does not log out until done manually or default timeout time is elapsed.


这篇关于连续使用app时自动注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆