Questions tagged [state-server]

StateServer is a session-state mode in ASP.NET, which indicates to store session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

What questions should have this tag?

All questions that relate to the use of stateserver mode for session state management in ASP.NET web applications.

Basic definition

StateServer is a session-state mode in ASP.NET, which indicates to store session state in a separate process called the ASP.NET state service. This ensures that session state is preserved if the Web application is restarted and also makes session state available to multiple Web servers in a Web farm.

Important links

MSDN Article on Session-state

8 questions
6
votes
1 answer

Upgrade from .NET 3.0 to 3.5: Sites set to StateServer revert to InProc when in Web Garden

Scenario: Take a server running .NET 3.0 and an ASP.NET Web site running in an application pool that has Web gardens enabled (number of processes: 3). The web.config configuration is as follows:
Nicholas Piasecki
  • 25,203
  • 5
  • 80
  • 91
5
votes
3 answers

How to avoid single point of failure when using state server in ASP.NET website

In my current project, we have to create a website (ASP.NET MVC) which is likely to have sufficient load to demand a server farm. I understand that if server farm is used, session states must be stored on somewhere else such as SQL server database…
Hemant
  • 19,486
  • 24
  • 91
  • 127
3
votes
6 answers

best way to share "session state" type data between two .net applications

we have a web application that, started out small, any new features that were added on, were just made as part of the same project, however now we would like to create new projects for these said addons... we created a new project, it inharits the…
Greg R
3
votes
1 answer

Is ASP.Net State Server an elegant solution?

We have an ASP.Net MVC project that will start with a single web server but will likely soon scale into a small web farm. As ASP.Net Authentication stores a UserID, and data caching may also be useful, we will likely need to make the jump to state…
alchemical
  • 13,559
  • 23
  • 83
  • 110
2
votes
4 answers

Managing Session State

I have a need to maintain the session state in the database. However I cannot access the database directly from the web server. The web server communicates with an app server which in turn has access to the database. Is there a way to configure…
Developer
  • 17,809
  • 26
  • 66
  • 92
2
votes
0 answers

serialize all type of objects to store session in state server or sql server

I have a web application with ASP.NET web forms and I want to store session in state server or SQL server , in those cases my classes must be serialized, but I have some non-serializable fields or class (like IIdentity). what’s the best way to do…
Hadi
  • 443
  • 3
  • 15
2
votes
3 answers

Preserve ASP.NET InProc Session when W3WP (IIS) Process Recycles

I understand that all InProc session data is always gone when its w3wp owner process recycles as it only resides in the w3wp memory. I wondered though if it is possible to cache the session data when recycling happens somewhere external to the…
Alex
  • 75,813
  • 86
  • 255
  • 348
1
vote
1 answer

serialize object with XmlDocument Property

I have to many classes that contains some field and properties of type XmlDocument. When I put the objects of these classes in session (such as state Server, SQL State Server) it is necessary to serialize them. But if we have a property of type…