ASP.NET - Javascript timeOut Warning based on sessionState timeOut in web.config

后端 未结 6 1625
囚心锁ツ
囚心锁ツ 2020-12-06 08:33

Problem: I am looking to create a time-out warning message on an asp.net page with a c# code behind based off my webconfig sessionState TimeOut Attribute.

Code on w

6条回答
  •  长情又很酷
    2020-12-06 09:20

    Try This Seesion Alert Using Jquery from my blog:

    • Session set to time out (e.g. 30 minutes).
    • When session times out, the user is logged out.
    • Display a countdown so the user knows how long is left.
    • Inform the user when they are approaching the limit (e.g. 5 minutes left).
    • Let the user know that they’ve been automatically timed out due to inactivity.

提交回复
热议问题