Get ASP.NET Session Last Access Time (or Time-to-Timeout)

后端 未结 4 560
天涯浪人
天涯浪人 2020-12-18 17:44

I\'m trying to determine how much time is left in a given ASP.NET session until it times out.

If there is no readily available time-to-timeout value, I could also ca

4条回答
  •  旧巷少年郎
    2020-12-18 18:09

    For multi-page solution one could save last request time in cookie, and javascript could consider this last access time for handling warning message or login out action.

提交回复
热议问题