Session question for web application

Jan 26, 2011 at 4:24 PM

Hi,

Thanks for your great work.

 

In web sample , StateServer mode used for Session in web.config, my question why is it like that or is it neccessary?

 

Best Regards

Mazdak

Coordinator
Jan 26, 2011 at 11:54 PM

Hi,

There isn't anything in LINQ to Twitter that requires the Session to use StateServer; it's more of an ASP.NET application concern.  Generally, when you're building an ASP.NET application that relies on session state, you don't want to use In-Process (default) because the Web server occasionally recycles your application, resulting in lost session state.  You don't see this often in the development environment because you're the only person using the application.  However, for busy applications, servers hosting multiple web apps, or shared hosting, In-Process will cause you a lot of headaches.  So, I tend to use either StateServer or SQL for Session state management as a matter of habit.

Joe