473,385 Members | 1,472 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,385 software developers and data experts.

Losing Session State on a State Server

Hi,

I am having a problem with the Session State. I am running IIS 5 on Win2K.
We are using 4 webservers with a load balancer. One of the webservers also
acts as a State Server. Here is the problem.

I write a few variables to session. I am on Server A.
I wait for a few minutes. I click refresh on the page. The load balancer has
shited me to Server B. And I have lost all my session varibales. But the
session ID remains the same.
I have disabled virus scanning on the servers.

Any pointers?

Warm Regards,
Vinay
Nov 18 '05 #1
3 2092
Read through help and google on this.
There are some settings you need to make the same on all web servers.
MAC address may be one of them.
--
Joe Fallon

"Vinay Joseph Mathew" <vi*********@yahoo.com> wrote in message
news:OR**************@tk2msftngp13.phx.gbl...
Hi,

I am having a problem with the Session State. I am running IIS 5 on Win2K.
We are using 4 webservers with a load balancer. One of the webservers also
acts as a State Server. Here is the problem.

I write a few variables to session. I am on Server A.
I wait for a few minutes. I click refresh on the page. The load balancer
has
shited me to Server B. And I have lost all my session varibales. But the
session ID remains the same.
I have disabled virus scanning on the servers.

Any pointers?

Warm Regards,
Vinay

Nov 18 '05 #2
TPS
Vinay, we had the same problem using SQL server to store session state. I
am sure the problem is the same
Each server has a number in the IIS metabase and all servers need to have
the same setting:
You need to sync the application names in the IIS metabase.

Get ahold of a copy of MetaEdit (search ms site) and make sure
this # (1751721335) is the same on all servers in this key.
LM\W3SVC\1751721335\root\

It does not have to be the number in this example, just make sure they
are the same on both of your servers.
1. Syncronize application names in the IIS metabase.
LM\W3SVC\1751721335\root\
key name: approot value = /LM/W3SVC/1751721335/Root
Make the above keys the same on all servers using metaedit.exe

2. Syncronize encryption keys across all web servers

a. Generate a key by running
E:\Source\DOTNET\CPO\HashConfigCs\bin\Debug\HashCo nfigCs.exe and pass these
args 24 64

See this article http://support.microsoft.com/?id=312906

b. Paste output from the above program into the machine.config on each
machine

<machineKey
validationKey="FED661660E09167F30CCFFF4E5DADF3E036 FD7712E7B187762FF32B918BC3
CA8FC1A751F3F7EFAD0A48AAC4DB90DDDD639E82B96632796B 416A64ABA1EF29A6F"

decryptionKey="DCB56D6EC85B79DF7DCD85F45F775B6AB01 6ABB3BE5C5E2C"
validation="SHA1"/>

Hope this helps,
TPS
Nov 18 '05 #3
TPS,

Does KBA 312906 only apply to Forms authentication cookies? I know thats
what the article states, but I was wondering if other cookies where encrypted
with this key.

Thanks...sonny

"TPS" wrote:
Vinay, we had the same problem using SQL server to store session state. I
am sure the problem is the same
Each server has a number in the IIS metabase and all servers need to have
the same setting:
You need to sync the application names in the IIS metabase.

Get ahold of a copy of MetaEdit (search ms site) and make sure
this # (1751721335) is the same on all servers in this key.
LM\W3SVC\1751721335\root\

It does not have to be the number in this example, just make sure they
are the same on both of your servers.
1. Syncronize application names in the IIS metabase.
LM\W3SVC\1751721335\root\
key name: approot value = /LM/W3SVC/1751721335/Root
Make the above keys the same on all servers using metaedit.exe

2. Syncronize encryption keys across all web servers

a. Generate a key by running
E:\Source\DOTNET\CPO\HashConfigCs\bin\Debug\HashCo nfigCs.exe and pass these
args 24 64

See this article http://support.microsoft.com/?id=312906

b. Paste output from the above program into the machine.config on each
machine

<machineKey
validationKey="FED661660E09167F30CCFFF4E5DADF3E036 FD7712E7B187762FF32B918BC3
CA8FC1A751F3F7EFAD0A48AAC4DB90DDDD639E82B96632796B 416A64ABA1EF29A6F"

decryptionKey="DCB56D6EC85B79DF7DCD85F45F775B6AB01 6ABB3BE5C5E2C"
validation="SHA1"/>

Hope this helps,
TPS

Nov 18 '05 #4

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

Similar topics

1
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
0
by: Nikander Bruggeman | last post by:
Hi, In a situation where I have 2 servers which are load balanced I keep losing session state, although I store the session state in sql server and use a cookieless session, so that the session...
2
by: GFuller | last post by:
- We have 2 aspx pages in a .NET project. The first sets a session variable and has a button that when clicked performs a 'redirect' to the second page which then reads the session variable. ...
4
by: Keith-Earl | last post by:
I have been writing ASP.NET apps since the RTM build and have never seen this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine...
1
by: Keith-Earl | last post by:
This is an update of an unresolved issue. Windows 2000 Server IIS 5.0 ..NET Framework 1.1 Problem: Every time I press REFRESH in IE I get a new ASP Session ID. This problem only experienced...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
by: none | last post by:
Hi, I've got a problem with losing session state in ASP.NET version 2. It does it intermittently - sometimes it tanks - and sometimes it works OK. I've got the ASP.NET state service started...
4
by: Arthur Dent | last post by:
Hello all, I have some issue which is driving me crazy in testing my site... Every now and then, the session variables in my site all get cleared out. I assume this is because of something...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.