As it turned out, the session timeout is affected by a gazillion different settings. The missing link for me was the time-out setting in the IIS manger itself. By default it is 20 minutes, which is waaaaay too low for a CMS based site with external content providers.
So here is what you need to do in order to make sure you dont get problems with content providers working on articles/forum posts for a long time:
- increase session time-out for the webserver
- Open the properties for your DNN site in your IIS manager
- Go to the tab "Home Directory"
- Click the button "Configuration" in the lower section of the screen
(You now have a window named "Application Configuration") - Go to the tab "Options"
- Make sure "Enable session state" is enabled, and increase the value. Personally I prefer 60 minutes.
- Enable content expiration for the webserver (so nobody screws up their data using the back/foreward buttons in their browser)
- Open the properties for your DNN site in your IIS manager
- Go to the tab "HTTP Headers"
- Make sure "Enable content expiration" is enabled and set your desired expire-time. Personally I prefer immediate expiration.
- Increase the session time-out for your DNN portal
- Log in as Host
- Go to the Host/provider configuratino page
- Open the "Advanced" section
- Increase the number of minutes users can be online without interaction
- Save the setting
- Adjust the forms timeout for .NET web applications on your site
- Open your web.config file
- find the forms tag
- Set the timeout value to whatever you like. The new default value for DNN is 60, but in older files (or sites where someone messed with the value) it might be lower. I prefer timeout="60" which also matches the above.
- Cycle/restart your IIS server
Increasing these values will make your content providers and forum users happier. But please note that it will also reduce your statistical count of unique visitors in some analysis tools. Or perhaps more correctly report the ACTUAL number of unique visitors, since you are going to have less users with dropped sessions and lost data ...
brgds
- Jesper