StateServer Session Mode:-

  • It is also called Out-Proc session mode.
  • StateServer uses a stand-alone Windows Service which is independent of IIS and can also be run on a separate server.
  • This session state is totally managed by aspnet_state.exe.
  • This server may run on the same system, but it's outside of the main application domain where your web application is running. This means if you restart your ASP.NET process, your session data will still be alive.
  • This approaches has several disadvantages due to the overhead of the serialization and de-serialization involved.
  • it also increases the cost of data access because every time the user retrieves session data, our application hits a different process.

Advantages:

  • It keeps data separate from IIS so any issues with IIS will not hamper session data.
  • It is useful in web farm and web garden scenarios.

Disadvantages:

  • Process is slow due to serialization and de-serialization.
  • State Server always needs to be up and running.

results matching ""

    No results matching ""