开发者

how to capture the mouse idle state in Master Page Iframe in javascript

I am using a Master page and many other pages from different folders are displayed in the IFrame within the master page. If the user is not doing anything for some time [5 minutes or so] in any of the other p开发者_运维问答ages, I want to give an alert message either to continue or to log out. How to do this?


For example setTimout in jsvascript on mouseover for your iFrame. On each mouseover drop your timeout with clearTimeout and create new one.

But I don't think it's a good idea. Better to handle session timeout on the server. More info about sessions state you can find here: ASP.NET Session State

After session ending user might me autmatically logged of and will be requested to login next time on any action whitch post request to the server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜