473,405 Members | 2,141 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,405 software developers and data experts.

Session not available across multiple servers in "InProc" mode

NAT
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 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 1872
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*@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
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 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*@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
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 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*@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
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 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
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
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...
0
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...
13
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...
1
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...
4
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...
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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,...
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...
0
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...
0
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...

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.