473,385 Members | 1,409 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.

Mangled SessionID using SessionState in SQLServer mode

Hello,

We have developed a web application which uses ASP.Net to persist a
user's session state in SQLServer mode. The application makes use of
this feature in a 2 server web farm, which is fronted by a load
balancer. However the application is not picking up the session data
properly when failing over from one web server to the other.

We have tracked the problem down to an incorrect SessionID being used
to reference the data in the ASPStateTempSessions table. When
initially hitting the first server (ServerA), we see an entry being
generated in the ASPStateTempSessions table, then we see a second entry
being generated in the table when failing over to the second server
(ServerB).

The interesting thing about this is that the SessionIDs in these two
records are identical, except for the last eight characters. For
example:
ServerA - zruxqtixob0vi5mmbhexbl45e31b9bce
ServerB - zruxqtixob0vi5mmbhexbl452014c0f1

Also, when debugging on one of the servers, we can see the SessionID
being reported as only the first 24 characters of the value stored in
database (e.g. zruxqtixob0vi5mmbhexbl45). Therefore it seems as though
the SessionID is being picked up correctly from the client, however it
is not being referenced correctly between the web server and the
database.

We have also observed some consistency of the value of the last eight
characters when logged by any particular server. In other words:
ServerA will always append e31b9bce to the SessionID when referencing
the data in the database.
ServerB will always append 2014c0f1 to the SessionID when referencing
the data in the database.

Obviously the result of all this is that the session data is lost when
failing over to the secondary web server. Please let me know if anyone
else has experienced anything like this or knows of a solution.

Thanks.

John Fleming
jf******@misicompany.com

Mar 29 '06 #1
0 1225

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

Similar topics

0
by: Kristofer Liljeblad | last post by:
Hi, I've successfully setup my machine to use: sessionState mode="SQLServer". All is up and running so no problems so far. Because I curious person, I started to play around with the two new...
1
by: TSelvan | last post by:
Hi All, We have developmented Web project with ASP.Net and SQL server Database. In this project we have configured "SessionState" mode as "SQLServer" in Web.Config with timeout="180" as...
1
by: Mae | last post by:
Dear all, I'm new to Session.SessionID in Global.asax.vb I wanted to use the sessionID in "Application_AuthenticateRequest" to check for sessionID for each IE, for testing purposes I just put...
8
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping...
5
by: Reza Solouki | last post by:
Help, I posted another thread here asking help because I was losing my session information(got no response). After a lot of searching on different sites I discovered that my sessionID changes...
6
by: Ibrahim. | last post by:
When a new request is made to the server a new session id is issued to the client (a browser instance). The problem I’m facing is that session id that is already assigned to a browser instance...
3
by: Rolf Welskes | last post by:
Hello, the following sample application in ASp.net 2.0 / VS2005 (Webproject). in an testPage.aspx ................ <P><A href="01Test01A.aspx">Link to 01Test01 A</A></P> <P><A...
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
3
by: Moe Sisko | last post by:
Using dotnet 2.0 sp1, I've got ASP.NET session state working ok in SQLServer mode, but the sessions never seem to expire. e.g if I add a timeout attribute like so : <sessionState...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.