Redirecting a page when session expires using asp.net mvc
- by Naidu
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.