开发者

asp.net client side timeout issue

开发者 https://www.devze.com 2023-03-01 08:12 出处:网络
we are using a jquery tree i开发者_运维问答n our asp.net mvc application and have forms authentication configured. A session timeout for 10 minutes is configured. The problem is if the user keeps inte

we are using a jquery tree i开发者_运维问答n our asp.net mvc application and have forms authentication configured. A session timeout for 10 minutes is configured. The problem is if the user keeps interacting with the tree for more than 10 minutes the session times out when a request goes to the server.

Kind of critical issue since the user was interacting with the application and got logged out.

What could be a good solution to this issue?


  1. Extend the session timeout setting in IIS (maybe set it to 20 or 30 minutes to give the user enough time)

  2. Use some periodical AJAX calls from the client side that just tell your server the user is still active.

0

精彩评论

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