Questions tagged [stateserver]

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

66 questions
147
votes
10 answers

Unable to make the session state request to the session state server

Our site is currently having this problem. Basically it only happen when we click some particular links where it will pop-up a new window. This is the error message we receive : Unable to make the session state request to the session state server. …
Adi
39
votes
4 answers

SQLServer vs StateServer for ASP.NET Session State Performance

I'm studying for a MS certification and one of the practice tests I'm doing has a question where the point of contention is the performance between storing the session in SQL Server as opposed to StateServer. Given the app is running in a web farm,…
Darko
  • 38,310
  • 15
  • 80
  • 107
26
votes
6 answers

Pros and Cons of using ASP.NET Session State Server (instead of InProc)?

Before I start using Session State server for the benefit of making session state more robust in my apps compared to InProc state, I'd like to find a list of Pros and Cons for evaluation. Update 1: Also about surviving application pool…
John K
  • 28,441
  • 31
  • 139
  • 229
18
votes
6 answers

ASP.NET Session Mix-up using StateServer (SCARY!)

We store two objects in session. Somehow, one of the objects from another user got loaded into a different user's session. The user should have had no access to this particular data, and as soon as they saw it they knew something was very wrong. We…
Josh Stodola
  • 81,538
  • 47
  • 180
  • 227
12
votes
2 answers

ASP.NET Session State Performance Benchmarks

I have found a lot of great information comparing InProc, StateServer, and SQLServer for ASP.NET state management, but I can't seem find any performance benchmark comparisons. It is clear that InProc is faster than StateServer which in turn is…
Joel Beckham
  • 18,254
  • 3
  • 35
  • 58
11
votes
4 answers

Why can't I share Session state between 2 web apps with StateServer? What am I missing?

I'm having trouble getting 2 identical ASP.NET MVC applications to share the same Session using a Session StateServer. The reason I'm trying to do this is we will eventually be deploying this app across 3 web servers that need to share the same…
DaveDev
  • 41,155
  • 72
  • 223
  • 385
10
votes
1 answer

Unable to make the session state request to the session state server?

I am trying to use State Server sessions. I have changed my Session state to the following: Running my website from local host and…
Pomster
  • 14,567
  • 55
  • 128
  • 204
7
votes
1 answer

Custom Session State Module - Use ASP State Service

EDIT (clarifying my question): Is there an API or method with which we can use the Out Of Process Asp.NET State Service from our own code or is that proprietary? We are looking into implementing a custom session state module that re-uses the…
Dan Drews
  • 1,966
  • 17
  • 38
7
votes
3 answers

How to maintain the same session id across multiple web applications in ASP.NET

I have two identical applications setup on IIS on different virtual directories (I have done some workaround to ensure that they both have the same application name). Is there a way to share session id across two asp.net web applications? Since I'm…
Saturn K
  • 2,705
  • 4
  • 26
  • 38
6
votes
5 answers

Session Management in ASP .NET

Just had a question about session management within ASP .NET. I have looked at the 3 options within IIS (InProc, StateServer and SQL Server) and am having issues deploying session persistence across multiple servers and across multiple web…
lkoutzas
  • 61
  • 1
  • 4
5
votes
3 answers

Suddenly getting "Unable to make the session state request to the session state server"

The setup: 2 web servers and a seperate state server I have two production web servers in a load balanced configuration. The ASP.NET web app they host shares state (like a web farm) using this line in their web.configs:
MGOwen
  • 6,562
  • 13
  • 58
  • 67
4
votes
2 answers

Why am I losing sessions when running in StateServer mode?

I have checked the servers (Win Server 2003) application event logs for the following problem http://support.microsoft.com/kb/308097 which doesn't show up. It just appears that sessions drop randomly for random users It's a single server setup, no…
Nick Allen
  • 11,970
  • 11
  • 45
  • 58
4
votes
2 answers

How to find the Number of Active Users when using a StateServer

How can you find out the number of active users when you're using a StateServer? Also is it possible to query the StateServer and retrieve the contents in the Session State? I know that this is all possible if you use SqlServer for a backing…
Arron S
  • 5,511
  • 7
  • 50
  • 57
4
votes
1 answer

Session mode "ServerState" doesn't handle Session in a Thread properly

I have implemented some work which adds values to the Session state inside a Thread. I would like these values to be available outside the Thread (obviously). The information added to the Session is available outside of the Session without any…
Ivan
  • 43
  • 6
3
votes
1 answer

InvalidCastException from StateServer session

A site I've written is experiencing a strange issue whereby it suddenly doesn't recognize items stored in the session immediately after I've made any update to the code. I've searched Stackoverflow / google / etc and can see that some other people…
user226722
1
2 3 4 5