473,585 Members | 2,513 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 1879
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
8396
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
4541
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
4743
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...
13
2434
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...
1
1417
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...
4
5693
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...
3
3447
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
11181
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...
0
7836
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
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. ...
1
7950
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...
0
8212
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...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
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
1
1447
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.