I am using forms authentication in asp.net. I have set timeout to 1 minute. As soon I login, if authenticated I will be redirected to Home Page (HomePage.aspx). This is working fine. If I stay away from the website and comes back after 1 minute, and try to access any other page, I will redirected to Login page as expected. My question is, if I come back and do some post back or refresh, then only I am redirected to login page otherwise I will be staying on same page. What should I do in order to login page to appear on screen if I come back after 1 minute.
<authentication mode="Forms">
<forms loginUrl="~/LoginPage.aspx" timeout="1"/>
</authentication>
<sessionState timeout="1"></sessionState>