I am trying to implement session expire attribute using the link below:
Redirect at Session Timeout in Global.asax in mvc4
I have added the class and added the attribute to the controller method.
But it doesn't seem to trigger the attribute class once the session times out.
I know the session expires as I tried to implement Session_End in global.acsx file and it was expiring and entering the code.
web config:
<sessionState compressionEnabled="true" timeout="1" />
<authentication mode="Forms">
<forms loginUrl="/Index" timeout="1" slidingExpiration="true" />
</authentication>
Any ideas on what i'm missing?