如果用户在登录c#.net后花费更多时间,会话应该过期 [英] session should be expired if user spend more time after login in c#.net

查看:60
本文介绍了如果用户在登录c#.net后花费更多时间,会话应该过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户在登录c#.net

解决方案

后花费更多时间,

会话应该过期。网上有很多例子。



这是一个可以解决你问题的例子。

http://code.msdn.microsoft.com/Auto-redirect-to-login-e1782b2f [ ^ ]


 <   sessionState  >  
timeout =分钟数
< / sessionState >





//在web.config文件中定义会话超时


session should be expired if user spend more time after login in c#.net

解决方案

There are lots of examples given in online.

Here is an example which could solve your problem.
http://code.msdn.microsoft.com/Auto-redirect-to-login-e1782b2f[^]


<sessionState>
    timeout="number of minutes"
</sessionState>



// define Session timeout in web.config file


这篇关于如果用户在登录c#.net后花费更多时间,会话应该过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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