asp.net中窗口表单中的会话超时 [英] session timeout in window forms in asp.net

查看:120
本文介绍了asp.net中窗口表单中的会话超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我希望oneForm自动超时并重定向到loginForm ......但稍微改变一下,我想给出20分钟的特定时间。但是,如果我触摸我的鼠标比计时器应该从启动开始(意味着0),如果我生病了没有触摸我的鼠标最后20分钟它会自动回到登录页面请帮助我,并提供我只有Windows窗体的代码in .net applicatioin

sir i want oneForm automatically timeout and redirect to loginForm... but little bit change that is i want to give specific time suppose 20 min. but if i ill touch my mouse than timer should be start from starting(means 0) and if i ill not touch my mouse last 20 min it will automatically come back to login page please help me for that and provide me code for only windows forms in .net applicatioin

推荐答案

可能你想转动滑动过期...看看 http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication。 slidingexpiration(v = vs.110).aspx [ ^ ]
Probably you want to turn sliding expiration on ..have a look at http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.slidingexpiration(v=vs.110).aspx[^]


这篇关于asp.net中窗口表单中的会话超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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