4
Answers

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

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)