We developed an ASP.NET 2.0 application which is using a MySQL 4 database using the .NET Mysql connector.
The application uses forms authentication for user login and during development it worked fine.
Recently we host the application on a service provider, but after user logs in and having the application idle for about 5 minutes the session timouts and it redirects to the login page. The application uses a session variable where the username is stored about the user who logged in. The web.config section about session is the following:
<authentication mode="Forms"><forms loginUrl="Default.aspx" defaultUrl="Main.aspx"
timeout
="20" /></authentication>
<
sessionState mode="InProc" stateConnectionString="tcpip=localhost:42424" timeout="20" />
Unfortunately the session does not last 20 minutes as specified but mostly 5 min. I tried StateServer mode instead of InProc changing the mode command in session state tag but the result is exactly the same.
I talked with the technical support to verify that no antivirus software is scanning the bin folder and they assured me about that. They also told me that the problem is caused by a problem in the application code and there's nothing more they can do! What's odd is that stateserver causes timeout of the session in about 5 minutes also.
I'm really stuck. Is there a solution to that, or do I have to find for another more valuable hosting provider
Thank you.