473,837 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Session not available across multiple servers in "InProc" mode

NAT
I am using session mode as "InProc"(entere d in web.config). I have deployed
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes I
find the session and sometimes not. I beleive this is happenning because of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can I
make the application find the session on a particular server . i.e. I should
restrict my application to use session from the worker process from which it
started. Once the application is closed then it can hit any server.But again
should restrict sessions to that server till the application is over. I think
if I can do that then my problem can be solved with "InProc" . But how do I
do this ?
Thanks in advance.


Jun 1 '06 #1
3 1895
Ask your network admin to make changes in load banalncer/router to make a
user's connection session stick to one server. This way user's call will end
up on same server untill borwser session is closed.

"NAT" <NA*@discussion s.microsoft.com > wrote in message
news:5F******** *************** ***********@mic rosoft.com...
I am using session mode as "InProc"(entere d in web.config). I have deployed
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes
I
find the session and sometimes not. I beleive this is happenning because
of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch
the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can
I
make the application find the session on a particular server . i.e. I
should
restrict my application to use session from the worker process from which
it
started. Once the application is closed then it can hit any server.But
again
should restrict sessions to that server till the application is over. I
think
if I can do that then my problem can be solved with "InProc" . But how do
I
do this ?
Thanks in advance.

Jun 1 '06 #2
NAT
Thanks for ur reply, But I cannot do that since this would affect all other
applications running on the server. Is there any other way like changing the
web.config so that this change affects only my appln.
"Winista" wrote:
Ask your network admin to make changes in load banalncer/router to make a
user's connection session stick to one server. This way user's call will end
up on same server untill borwser session is closed.

"NAT" <NA*@discussion s.microsoft.com > wrote in message
news:5F******** *************** ***********@mic rosoft.com...
I am using session mode as "InProc"(entere d in web.config). I have deployed
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes
I
find the session and sometimes not. I beleive this is happenning because
of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch
the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can
I
make the application find the session on a particular server . i.e. I
should
restrict my application to use session from the worker process from which
it
started. Once the application is closed then it can hit any server.But
again
should restrict sessions to that server till the application is over. I
think
if I can do that then my problem can be solved with "InProc" . But how do
I
do this ?
Thanks in advance.


Jun 1 '06 #3
Without a Sticky-IP feature turned on, there's no way to ensure that a user's
next page request will land on the same server where the session originate.

Your alternatives are:
1) State Server.
2) SQL Server.
3) Custom Solution.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"NAT" wrote:
Thanks for ur reply, But I cannot do that since this would affect all other
applications running on the server. Is there any other way like changing the
web.config so that this change affects only my appln.
"Winista" wrote:
Ask your network admin to make changes in load banalncer/router to make a
user's connection session stick to one server. This way user's call will end
up on same server untill borwser session is closed.

"NAT" <NA*@discussion s.microsoft.com > wrote in message
news:5F******** *************** ***********@mic rosoft.com...
I am using session mode as "InProc"(entere d in web.config). I have deployed
my ASP.NET appln. on a server which uses Load Balancer. i.e I have two
servers.
I am using session across pages.The problem I am facing is that sometimes
I
find the session and sometimes not. I beleive this is happenning because
of
multiple servers. Because session is created on a worker process on one
server and the second time it must be hitting the other server to fetch
the
session. Hence the issue.
What is the solution ? Is it possible to acheive this with "InProc" ? Can
I
make the application find the session on a particular server . i.e. I
should
restrict my application to use session from the worker process from which
it
started. Once the application is closed then it can hit any server.But
again
should restrict sessions to that server till the application is over. I
think
if I can do that then my problem can be solved with "InProc" . But how do
I
do this ?
Thanks in advance.


Jun 1 '06 #4

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

Similar topics

8
8429
by: karahan celikel | last post by:
I realized that when SqlServer mode is used for session management Session_End event is not fired in global.asax. What can I do if I want to do something when a user's session end? Thanks
3
4575
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function Session_Start() { Session.Timeout = 3000; } in global.asax
0
4749
by: --alec | last post by:
Is there a maximum recommended value for setting the timeout value in web.config section <sessionState mode="InProc" timeout="20" /> What are the possible repercussions of setting this value to high? I have a user base whose job tasks require them at times to open a asp.net page and ignore it for extended periods of time. The default value of 20 is
13
2453
by: James Hunter Ross | last post by:
We love the ASP.NET "Session" concept and make good use of it. But, getting close to deployment we find we lose sessions far too often, probably due to application restarts, etc. We hope to eliminate these restarts, but we're not sure that can be achieved. (We are exploring who/what might be touching web.config or assemblies or other files in our application, but have found nothing so far.) We have some serious rewriting to do if all...
1
1436
by: NAT | last post by:
I am using session mode as "InProc"(entered in web.config). I have deployed my ASP.NET appln. on a server which uses Load Balancer. i.e I have two servers. I am using session across pages.The problem I am facing is that sometimes I find the session and sometimes not. I beleive this is happenning because of multiple servers. Because session is created on a worker process on one server and the second time it must be hitting the other server...
4
5701
by: NAT | last post by:
I was using session mode as "InProc"(entered in web.config). I have deployed my ASP.NET appln. on a server which uses Load Balancer. i.e I have two servers. I am using session across pages.The problem I was facing is that sometimes I find the session and sometimes not. I beleive this is happenning because of multiple servers. Because session is created on a worker process on one server and the second time it must be hitting the other server...
3
3464
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 mode="SQLServer" sqlConnectionString="Integrated Security=SSPI;data source=localhost" timeout="1" >
4
11213
by: wilderness | last post by:
I have a Windows 2000 Server (SP4) with .NET Framework 1.1 (with hotfixes) installed, along with .NET Framework 2 I have a Delphi .DLL that interfaces with several .aspx files as part of a member database. Each .aspx file contains categorized properties about members. The first page is named profile1.aspx, the second page profile2.aspx and so forth. NEXT and PREVIOUS buttons allow the user to move back and forth. For some unknown...
0
9837
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10870
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10563
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10621
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10267
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9392
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5845
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4038
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.