473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

A way to prove that StateServer is working?

Hi... I have an asp.net 2.0 application running on iis6 in it's own
pool. The app is set to use a State Server for out of process session
handling. I'm only storing one session variable -- the user's ID code
after a successful login.
All works well, but I don't think it's actually using the State
Server. If I shut down the asp.net state server service, then the
website fails. If I move the state server to another machine, it
works properly too ... shut that service down and it fails too. All
this tells me that it's using an out-of-process state server.
BUT... here are the reasons I believe it is NOT using it:
1. If I recycle the pool, the session variables are lost. According
to all the documentation I read, cycling worker processes should not
affect session variables if they are kept out of process.
2. If I increase the number of worker processes 1 in the Web Garden,
I get strange results. For example, I need to login X times, where X
is the number of worker processes. This tells me that it's performing
a round-robin between the worker processes and losing my session
variable in each (I am the only tester on this machine).
3. Once logged in X times, I still get logged out sometimes. This
never, ever happens if I reduce the worker processes back to 1.

So, what's the deal? All of these errors are classic in-processes
state errors, but I explicitly have it set to use a state server...
and, shutting down that state server causes a page error. As far as I
know, I should be able to setup a State Server (either on the
localhost or another computer) and all session variables should:
- Survive recycling of worker processes in the application pool
- Survive the round-robin rotation between worker processes in a Web
Garden.

Am I missing something here?
Thanks much for any insight.
Jun 27 '08 #1
2 1635
for security sessions are encrypted. the key is regenerated on a recycle and
is unique to an application instance. you should have set webGarden=true in
the processModel. you may also need to set the machine key.

read the docs about setting up a web farm/ web garden.

-- bruce (sqlwork.com)
"geek" wrote:
Hi... I have an asp.net 2.0 application running on iis6 in it's own
pool. The app is set to use a State Server for out of process session
handling. I'm only storing one session variable -- the user's ID code
after a successful login.
All works well, but I don't think it's actually using the State
Server. If I shut down the asp.net state server service, then the
website fails. If I move the state server to another machine, it
works properly too ... shut that service down and it fails too. All
this tells me that it's using an out-of-process state server.
BUT... here are the reasons I believe it is NOT using it:
1. If I recycle the pool, the session variables are lost. According
to all the documentation I read, cycling worker processes should not
affect session variables if they are kept out of process.
2. If I increase the number of worker processes 1 in the Web Garden,
I get strange results. For example, I need to login X times, where X
is the number of worker processes. This tells me that it's performing
a round-robin between the worker processes and losing my session
variable in each (I am the only tester on this machine).
3. Once logged in X times, I still get logged out sometimes. This
never, ever happens if I reduce the worker processes back to 1.

So, what's the deal? All of these errors are classic in-processes
state errors, but I explicitly have it set to use a state server...
and, shutting down that state server causes a page error. As far as I
know, I should be able to setup a State Server (either on the
localhost or another computer) and all session variables should:
- Survive recycling of worker processes in the application pool
- Survive the round-robin rotation between worker processes in a Web
Garden.

Am I missing something here?
Thanks much for any insight.
Jun 27 '08 #2
Yes, thanks for the reply. Of course I've read tons of documentation
on setting up a web farm... I wouldn't have posted to this group
unless I really gave it a good attempt over the span of a week.
I believe it is setup correctly. My question is more to the state
server. The problems I am experiencing (loss of session variables) is
just as if I was using in-proc state server, when in fact I have it
set to use a State Server, either on the local machine or a remote
machine (I've tried both).
So, I am wondering if there is a way to prove that the State Server is
actually handling these requests? The state server service is
running, but how can you be sure it's running out of process using
it? If I cycle the application pool, I lose all session variables.
If I use a web garden, session variables act crazy and get lost. Yet,
the website is set to use out of proc state server. How to make sure
it is actually using it?
Thanks much
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Victor Marquez | last post by:
Hi All, We have been experiencing problems with StateServer. The service is hanging-up and stops responding further requests. Facts: - There are not events in Application Logs (not...
2
by: MG | last post by:
On my development machine my application works fine but on the deployment server my session variable gets lost after a postback on a webform. By doing a watch on the Session object I can see that...
2
by: Dhaval Mehta | last post by:
Thanks in advance I want sessions information for the asp .net application ( mainly SessionId). I am using Oracle as back end. I have sessionid using Session.SessionID in asp .net. I am gettin...
8
by: GeekBoy | last post by:
I understand the benefit of pushing the StateServer process onto another computer to "balance" the load and take some cpu and memory usage off the web server, but how much could it possibly help?...
0
by: Nils Hedström | last post by:
I have some problems with my stateserver. First my setup: I am running ASP.NET 1.1.4322 SP 1.1 on one computer and the stateserver on another computer. Both of the machines are Dell Poweredge...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
6
by: tshad | last post by:
I switched my site from InProc to StateServer a while ago which solve a problem I was having dropping my session cookies when the worker process recycles. This has been working well until today....
4
by: archana | last post by:
Hi all, I am new to web services. I am using stateserver to stored data which i set using session. I changed mode in web.config file to StateServer. But didn't change tcipip address. I kept...
2
by: =?Utf-8?B?TUNN?= | last post by:
My development machine is running Vista x64. I cannot find the ASP.NET StateServer Service in my list of available Services. Do you know how I can enable this?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.