Ladies, Gents, I've been trying to debug this issue for a long time now! I'm using forms authentication with a customized membership provider. All my session states are stored on my DB as well - everything works locally. After deploying everything runs for a few minutes and every so often (very sporadic) - range from about 2 minutes to 50 minutes, all users of the site are kicked out (redirected to the login page) - when I check their session state they are still valid. I am not getting any exceptions and I've even redeployed with a pretty much blank page and I am still seeing the issue! Any ideas are more than welcome - I'll also post my web.config. THANKS!!
Just a thought. I wonder if you couldn't simply "restart" the application or programmatically recycle the worker process.
yes. You can use the API's iisrecycleApplicationPool method. http://community.discountasp.net/showthread.php?t=3522