I took over developing a website using C# and for some reason the website keep asking the users to log back in after about a 1-5 minutes of inactivity. I checked the Web.config and the timeout set to 60
<authentication mode="Forms">
<forms loginUrl="login.aspx" name=".tgcpauth" defaultUrl="~/default.aspx" timeout="60" slidingExpiration="true" cookieless="UseCookies"/>
</authentication>
I have tried this on Google Chrome and Firefox as well.
The final result I want is to kick them out after 30 minutes instead of few seconds.
Update: I tried to add <sessionState timeout="30" />
to my code before and after the authentication section but it still log the users out after 10 minutes of being idle. I read somewhere that 10 minutes is the default time for IIS. If that's the case, then how do I know which version of IIS I am running and where do I find IIS? I am using Microsoft Visual Studio 2010. Now, if I don't have IIS installed, then should I install it and what good is it for my c# website?