Hello , My session is expiring in time span of 30 to 60 secs. I have given time out for 60 min in both session state and form auth , also used machine key, but no success. I have tried SQLServer & StateServer mode in sessionstate, but these didnt work. Only Inproc is working for me. I have read following threads, on this forum. http://forum.Winhost.com/showthread.php?t=9017 http://forum.Winhost.com/showthread.php?p=19201#post19201 Please help me here. Thanks.
We support only inProc and SQLServer modes to store session information. inProc is used by default. If you want to use SQLServer mode, we will need to install sql session schema to your Winhost SQL Server database, and you will need to update your web.config file according to this Knowledge Base article. Please create a support ticket though our support portal, providing us with your Winhost database name to which you'd like to install sql session schema.
Thanks for the reply here. I would prefer InProc , rather than SQLServer. It would be better if this issue can be solved without using database. Using SQLServer mode is the last option I would prefer over InProc, if it the only solution. We are using secondary domain name, as primary domain is not pointing to actual location, but this can't be the problem , as we get session started. Can there be any service or method to get to issue, any optimization we can to perform , any debugging possible here. I need to get this issue resolved soon. Please suggests any limitations & possibilities associated here, may be we can get this resolved.
These sessions seem like the bane of Winhost customers. Did you ever get this resolved? I am in the same boat (tried the machineKey and it didn't not help, don't want to upgrade my account just to be able to add a 2nd sql server db and have it not resolve the problem).
SQL session state works! (steps included) I noticed a similar/same problem posted under general troubleshooting and I posted a solution that worked for me if you are interested... http://forum.Winhost.com/showthread.php?t=9017
Please note the following: We host each website in its unique application pool/process. To ensure server stability we recycle the application if any of the following conditions are met: 1) More than 20 minutes of idle time (no HTTP request in 20 minutes) 2) The application uses more than 100 MB of memory for the Basic plan and 200 MB of memory for the Max and 300 MB of memory for the Ultimate plan. 3) The application uses more than 70% of CPU resources for more than 5 minutes If you are using the InProc and if the application recycles for one of the follow conditions above. Then it is most likely that you will lose your sessions. If you do not want to lose your sessions then I recommend that you use the SQLServer As stated before. Please read our knowledge base article on How to enable ASP.NET SQL Server Session on your web application Please make sure you read the knowledge base article above very carefully. If you can not afford to lose your sessions then using the SQLServer should resolve your issue. If the application pool recycles and you are using the SQLServer sessions. Then you should not lose your sessions. I hope this is helpful for some of you reading this post