Redirecting a page when session expires using asp.net mvc
Posted
by
Naidu
on Stack Overflow
See other posts from Stack Overflow
or by Naidu
Published on 2012-12-17T04:56:29Z
Indexed on
2012/12/17
5:03 UTC
Read the original article
Hit count: 160
asp.net-mvc-3
|dns
In my web.config file i have the following code:
<system.web>
<assemblies>
<authentication mode="Forms">
<forms loginUrl="/Account/Login" slidingExpiration="true" timeout="1" />
</authentication>
<sessionState timeout="1"></sessionState>
</assemblies>
</system.web>
And I have main page Project and in that there will sub pages. I have given the [Authorize]
attribute for each view index method.
After the session complete when we select any view then the page inside the project main page will be redirecting. But I want the whole page to be redirected.
Any Help is appreciated.
© Stack Overflow or respective owner