Sneha K

Sneha K

  • 1.2k
  • 527
  • 196.7k

How to show session Timeout Warning message in ASP.NET MVC

Feb 13 2017 11:48 AM

I have an mvc 4 application where I need to show an alert warning when the session reaches its timeout.

I have seen various articles online that explain to do this in asp.net, but I'm looking for a way out to do it in MVC.

Any help would be greatly appreciated.

my web.config

<sessionState mode="InProc" timeout="30" />

Here i set my session time once it expires it return to login page before it return to login page it need to show warning messgae.

Thanks..


Answers (4)