Notify user when session time out in asp.net

前端 未结 4 1200
南旧
南旧 2020-12-28 11:24

What is the best way to show a message to user after session is expired? By then, the user should be logged out and redirected to start page. I can use javascript to redirec

4条回答
  •  难免孤独
    2020-12-28 11:42

    Other answers are suggesting showing the notification on the page that times out.. but I think you are asking how to show a message on the page the user is redirected to.

    One possibility would be to just pass a URL request parameter to your start page only on session timeout. Your script or asp.net code could then decide to display the message when the parameter is present.

提交回复
热议问题