Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement session Time out page to show using asp.net mvc

I have this in my webconfig file...

<authentication mode="Forms">
      <forms loginUrl="~/Account/LogOn" timeout="2880" />
    </authentication>

timeout 2880 means how much sec or min its going to take?

How to show when my session time out I need to display SessionTimeout.aspx page...

Thanks

like image 578
kumar Avatar asked Oct 21 '10 18:10

kumar


People also ask

How does ASP.NET handle session timeout?

There are two ways to set a session timeout in ASP.NET. First method: Go to web. config file and add following script where sessionstate timeout is set to 60 seconds.


1 Answers

You can identify a session time out in MVC with an action filter. Here is a question I asked about the issue. And the time listed is in minutes. (check comments for link)

like image 105
Nick Larsen Avatar answered Oct 04 '22 04:10

Nick Larsen