I have a .NET 2 app using the login control. My problem is that if the user logs in and then does nothing for an hour or so, the first postback they do kicks them back to the login page. I enabled SQL sessions thinking it would solve this problem, but it hasn't. I'm setting the timeout value in the web config, here: <sessionState mode="SQLServer" allowCustomSqlDatabase = "true" sqlConnectionString="data Source=sql2k501.discountasp.net;database=SQL2005_199810_sessiondb;User ID=SQL2005_199810_sessiondb_user;password=prt94unxs" cookieless="false" timeout="6000" /> Is there somewhere else I need to set it? Users may sit for long periods logged on between actions, it's very irritating for them to have to keep logging back on. Any help appreciated.
Although the settings in the web.config file override the settings in the machine.config file I would suggest you to verify and when necessary to take up the properly settings in the machine.config file.</o> Pay attention to the processModel section wherein the settings for process recycling are set.</o> Process recycling is the technique of shutting down and restarting the ASP.NET worker process (aspnet_wp.exe) that become inactive or consuming excessive resources.</o> </o> Have a fun!</o> Valentin</o> MCP C#</o> Do not hesitate to contact me!</o> www.wwv-it.eu </o> [email protected]</o>
The file is located in the %runtime install path%\Config directory.</o> For instance:</o> C:\WINDOWS\Microsoft.NET\Framework\<<I style="mso-bidi-font-style: normal">version[/I]>\CONFIG\machine.config, C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config</o> </o> In the mentioned directory you find two other useful files:</o> machine.config.comments</o> machine.config.default</o> </o> Regards</o> </o> Valentin</o>
I think this issue is related to the forms timeout. You can set the timeout value for forms authentication in the web.config. See: http://msdn2.microsoft.com/en-us/library/1d3t3c61.aspx Aristotle DiscountASP.NET www.DiscountASP.NET